Description Usage Arguments See Also
Get the DBIConnection connection object by config name.
1 | db.connection(con.name)
|
con.name |
connection names are either defined in database.yml or registered at runtime using register.connections(). If connection configuration exists, but the DB connection has not yet been established, calling this function will also try to connect to the database. |
list.connections, register.connections
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.