db.connection: Get the DBIConnection connection object by config name.

Description Usage Arguments See Also

Description

Get the DBIConnection connection object by config name.

Usage

1
db.connection(con.name)

Arguments

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.

See Also

list.connections, register.connections


adjust/rport documentation built on May 10, 2019, 5:55 a.m.