|
static | dba_factory ($server, $port, $user, $pass, $db, $dbtype, $install=false) |
| Returns the database driver object. More...
|
|
static DBA::dba_factory |
( |
|
$server, |
|
|
|
$port, |
|
|
|
$user, |
|
|
|
$pass, |
|
|
|
$db, |
|
|
|
$dbtype, |
|
|
|
$install = false |
|
) |
| |
|
static |
Returns the database driver object.
- Parameters
-
string | $server | DB server name (or PDO dsn - e.g. mysqli:foobar.com;) |
string | $port | DB port |
string | $user | DB username |
string | $pass | DB password |
string | $db | database name |
string | $dbtype | 0 for mysql, 1 for postgres |
bool | $install | Defaults to false |
- Returns
- null|dba_driver A database driver object (dba_pdo) or null if no driver found.
Referenced by Zotlabs\Module\Setup\post(), and sys_boot().
DBA::$install_script = 'schema_mysql.sql' |
|
static |
DBA::$null_date = '0001-01-01 00:00:00' |
|
static |
DBA::$utc_now = 'UTC_TIMESTAMP()' |
|
static |
The documentation for this class was generated from the following file: