Class MySql
-
MvcCore\Ext\Models\Db\Connection
implements
MvcCore\Model\IConstants,
MvcCore\Ext\Models\Db\IConnection
-
MvcCore\Ext\Models\Db\Providers\Connections\MySql
implements
MvcCore\Ext\Models\Db\Model\IConstants,
MvcCore\Ext\Models\Db\Models\MySqls\IConstants
Methods summary
public
boolean|null
|
#
IsMariaDb( )
Return TRUE if server is MariaDB.
Return TRUE if server is MariaDB.
Returns
boolean|null
|
public
boolean
|
#
IsMySqlOrPercona( )
Return TRUE if server is MySQL or Percona Server.
Return TRUE if server is MySQL or Percona Server.
Returns
boolean
|
public
string
|
#
QuoteName( string $identifierName )
Parameters
Returns
string
Inheritdocs
Overrides
|
public
boolean
|
#
BeginTransaction( integer $flags = 0, string $name = NULL )
Parameters
- $flags
- Transaction isolation, read/write mode and consistent snapshot option.
- $name
- String without spaces to identify transaction in logs.
Returns
boolean
Throws
PDOException|RuntimeException
Inheritdocs
Overrides
|
public
boolean
|
#
Commit( integer $flags = 0 )
Parameters
- $flags
- Transaction chaininig.
Returns
boolean
Throws
PDOException
Inheritdocs
Overrides
|
public
boolean
|
#
RollBack( integer $flags = NULL )
Rolls back a transaction.
Rolls back a transaction.
Parameters
- $flags
- Transaction chaininig.
Returns
boolean
Throws
PDOException
Overrides
|
protected
boolean
|
#
isConnectionLost( Throwable $e )
Parameters
Returns
boolean
See
https://stackoverflow.com/questions/7942154/mysql-error-2006-mysql-server-has-gone-away
Inheritdocs
Overrides
|
protected
|
#
setUpConnectionSpecifics( )
Set up connection specific properties depends on this driver.
Set up connection specific properties depends on this driver.
Overrides
|
Methods inherited from MvcCore\Ext\Models\Db\Connection
Execute(),
GetAttribute(),
GetAvailableDrivers(),
GetConfig(),
GetProvider(),
GetVersion(),
InTransaction(),
IsMutliStatements(),
LastInsertId(),
Prepare(),
Query(),
Quote(),
SetAttribute(),
__construct(),
connect(),
devDumpQueryWithParams(),
handleError(),
providerInvoke(),
reConnectIfNecessaryOrThrownError()
|
Constants inherited from MvcCore\Model\IConstants
PROPS_CONVERT_CAMELCASE_TO_PASCALCASE,
PROPS_CONVERT_CAMELCASE_TO_UNDERSCORES,
PROPS_CONVERT_CASE_INSENSITIVE,
PROPS_CONVERT_PASCALCASE_TO_CAMELCASE,
PROPS_CONVERT_PASCALCASE_TO_UNDERSCORES,
PROPS_CONVERT_UNDERSCORES_TO_CAMELCASE,
PROPS_CONVERT_UNDERSCORES_TO_PASCALCASE,
PROPS_INHERIT,
PROPS_INITIAL_VALUES,
PROPS_NAMES_BY_CODE,
PROPS_NAMES_BY_DATABASE,
PROPS_PRIVATE,
PROPS_PROTECTED,
PROPS_PUBLIC
|
Constants inherited from MvcCore\Ext\Models\Db\Model\IConstants
METADATA_AUTO_INCREMENT,
METADATA_BY_CODE,
METADATA_BY_DATABASE,
METADATA_CONNECTIONS,
METADATA_PRIMARY_KEY,
METADATA_TABLES,
METADATA_UNIQUE_KEY,
TRANS_ISOLATION_READ_COMMITTED,
TRANS_ISOLATION_READ_UNCOMMITTED,
TRANS_ISOLATION_REPEATABLE_READ,
TRANS_ISOLATION_SERIALIZABLE
|
Properties summary
protected
boolean
|
$autocommit
MySQL autocommit for current session.
MySQL autocommit for current session.
|
|
protected
boolean|null
|
$mariadb
TRUE for MariaDB server connection, FALSE for MySQL or Percona Server connections.
TRUE for MariaDB server connection, FALSE for MySQL or Percona Server connections.
|
|
protected
boolean|null
|
$transReadWriteSupport
TRUE for SQL READ WRITE or READ ONLY start transaction property support.
TRUE for SQL READ WRITE or READ ONLY start transaction property support.
|
|
Properties inherited from MvcCore\Ext\Models\Db\Connection
$dsn,
$inTransaction,
$multiStatements,
$options,
$password,
$provider,
$retryAttempts,
$retryAttemptsTotal,
$retryDelay,
$transactionName,
$username,
$version
|