Database.php
Table of Contents
Functions
- bb_connectdb() : bool
- Establishes a Database connection using the given configuration stack
- bb_setdb() : void
- Sets the core Database
- bb_db() : null|IDatabaseDriver
- Gets the core Database or null
- bb_dbconnected() : bool
- Returns whether the Core Database is connected
- bb_dbalive() : bool
- Returns whether the Core Database is alive
Functions
bb_connectdb()
Establishes a Database connection using the given configuration stack
bb_connectdb(array<string|int, mixed> $config) : bool
Parameters
- $config : array<string|int, mixed>
-
Configuration Stack with all Connection Parameters
Return values
bool —Returns true if connection is established successful
bb_setdb()
Sets the core Database
bb_setdb(IDatabaseDriver $db) : void
Parameters
- $db : IDatabaseDriver
-
DB to use
bb_db()
Gets the core Database or null
bb_db() : null|IDatabaseDriver
Return values
null|IDatabaseDriverbb_dbconnected()
Returns whether the Core Database is connected
bb_dbconnected() : bool
Return values
boolbb_dbalive()
Returns whether the Core Database is alive
bb_dbalive() : bool