Class Connection
- MvcCore\Ext\Models\Db\Connection implements MvcCore\Model\IConstants, MvcCore\Ext\Models\Db\IConnection
Direct known subclasses
MvcCore\Ext\Models\Db\Providers\Connections\MySql, MvcCore\Ext\Models\Db\Providers\Connections\PgSql, MvcCore\Ext\Models\Db\Providers\Connections\SQLite, MvcCore\Ext\Models\Db\Providers\Connections\SqlSrv
public static
array
|
|
public
|
#
__construct( string $dsn, string $username = NULL, string $password = NULL, array $options = [] )
Creates a PDO instance representing a connection to a database. |
public
|
|
public
|
|
public
|
|
public
integer|float|string|null
|
|
public
string
|
|
public
string
|
|
public
mixed
|
|
public
boolean
|
|
public
null|string
|
|
public
boolean|null
|
|
public
PDO
|
|
public
array
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
protected
PDO
|
|
protected
|
|
protected
boolean
|
|
protected
|
#
providerInvoke( string $method, array $args, boolean $executeProvider = FALSE, boolean $returnReader = FALSE )
Try to invoke methods |
protected
|
|
protected
array
|
#
devDumpQueryWithParams( string $query, array $params )
Replace all params in query to dump query with values on development env. Return array with success boolean and replaced query. |
protected
PDO|null
|
Rollback()
|
protected
PDO
|
$provider
|
#
NULL
|
protected
string
|
$dsn
PDO driver specific connection string (it may contains crendentials in come cases). |
|
protected
string
|
$username
Connection user name, always not used in file databases without authentication. |
|
protected
string
|
$password
Database password, it's stored in memory all the time for reconnection purposes. |
|
protected
array
|
$options
|
|
protected
boolean
|
$multiStatements
|
#
FALSE
|
protected
string|null
|
$version
Database server version in "PHP-standardized" version number string. |
#
NULL
|
protected
boolean
|
$inTransaction
Boolean about if current connection is inside transaction or not. |
#
FALSE
|
protected
string
|
$transactionName
If current connection is inside transaction, this could contains
current transaction name, else it's |
#
NULL
|
protected
integer|null
|
$retryAttemptsTotal
Retry attemps total count to reconnect by system configuration (if implemented). |
#
NULL
|
protected
integer
|
$retryAttempts
Retry attemps counter. |
#
0
|
protected
float
|
$retryDelay
Delay to wait before next reconnect in seconds, it coulds contain miliseconds after decimal point. |
#
0
|