$db
$db : array
Database connection(s)
Db class
connect(string $adapter, array $options, string $prefix = '\Pop\Db\Adapter\\') : \Pop\Db\Adapter\AbstractAdapter
Method to connect to a database and return the database adapter object
string | $adapter | |
array | $options | |
string | $prefix |
mysqlConnect(array $options, string $prefix = '\Pop\Db\Adapter\\') : \Pop\Db\Adapter\Mysql
Method to connect to a MySQL database and return the MySQL database adapter object
array | $options | |
string | $prefix |
pdoConnect(array $options, string $prefix = '\Pop\Db\Adapter\\') : \Pop\Db\Adapter\Pdo
Method to connect to a PDO database and return the PDO database adapter object
array | $options | |
string | $prefix |
pgsqlConnect(array $options, string $prefix = '\Pop\Db\Adapter\\') : \Pop\Db\Adapter\Pgsql
Method to connect to a PostgreSQL database and return the PostgreSQL database adapter object
array | $options | |
string | $prefix |
sqlsrvConnect(array $options, string $prefix = '\Pop\Db\Adapter\\') : \Pop\Db\Adapter\Sqlsrv
Method to connect to a SQL Server database and return the SQL Server database adapter object
array | $options | |
string | $prefix |
sqliteConnect(array $options, string $prefix = '\Pop\Db\Adapter\\') : \Pop\Db\Adapter\Sqlite
Method to connect to a SQLite database and return the SQLite database adapter object
array | $options | |
string | $prefix |
setDb(\Pop\Db\Adapter\AbstractAdapter $db, string $class = null, string $prefix = null, boolean $isDefault = false) : void
Set DB adapter
\Pop\Db\Adapter\AbstractAdapter | $db | |
string | $class | |
string | $prefix | |
boolean | $isDefault |
setDefaultDb(\Pop\Db\Adapter\AbstractAdapter $db, string $class = null, string $prefix = null) : void
Set DB adapter
\Pop\Db\Adapter\AbstractAdapter | $db | |
string | $class | |
string | $prefix |
getDb(string $class = null) : \Pop\Db\Adapter\AbstractAdapter
Get DB adapter
string | $class |
db(string $class = null) : \Pop\Db\Adapter\AbstractAdapter
Get DB adapter (alias)
string | $class |