1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс MysqlCommonConnection
Граф наследования:MysqlCommonConnection:
Connection MysqliConnection

Открытые члены

 __construct (array $configuration)
 isTableExists ($tableName)
 isIndexExists ($tableName, array $columns)
 getIndexName ($tableName, array $columns, $strict=false)
 getTableFields ($tableName)
 createTable ($tableName, $fields, $primary=[], $autoincrement=[])
 createIndex ($tableName, $indexName, $columnNames, $columnLengths=null, $indexType=null)
 renameTable ($currentName, $newName)
 dropTable ($tableName)
 startTransaction ()
 commitTransaction ()
 rollbackTransaction ()
 lock ($name, $timeout=0)
 unlock ($name)
 getType ()
 setStorageEngine ()
 selectDatabase ($database)
 getMaxAllowedPacket ()
 createQueryException ($code=0, $databaseMessage='', $query='')
Открытые члены унаследованные от Connection
 connect ()
 disconnect ()
 getResource ()
 isConnected ()
 getConfiguration ()

Защищенные члены

 getLockName ($name)
Защищенные члены унаследованные от Connection
 connectInternal ()
 disconnectInternal ()

Защищенные данные

 $engine = ""
int $transactionLevel = 0
Защищенные данные унаследованные от Connection
 $resource
 $isConnected = false
 $configuration

Подробное описание

См. определение в файле mysqlcommonconnection.php строка 9

Конструктор(ы)

◆ __construct()

__construct ( array $configuration)

@inheritDoc

Переопределяет метод предка Connection.

Переопределяется в MysqliConnection.

См. определение в файле mysqlcommonconnection.php строка 17

Методы

◆ commitTransaction()

commitTransaction ( )

@inheritDoc

См. определение в файле mysqlcommonconnection.php строка 247

◆ createIndex()

createIndex ( $tableName,
$indexName,
$columnNames,
$columnLengths = null,
$indexType = null )

@inheritDoc

См. определение в файле mysqlcommonconnection.php строка 150

◆ createQueryException()

createQueryException ( $code = 0,
$databaseMessage = '',
$query = '' )

См. определение в файле mysqlcommonconnection.php строка 409

◆ createTable()

createTable ( $tableName,
$fields,
$primary = [],
$autoincrement = [] )

@inheritDoc

См. определение в файле mysqlcommonconnection.php строка 102

◆ dropTable()

dropTable ( $tableName)

@inheritDoc

См. определение в файле mysqlcommonconnection.php строка 218

◆ getIndexName()

getIndexName ( $tableName,
array $columns,
$strict = false )

@inheritDoc

См. определение в файле mysqlcommonconnection.php строка 52

◆ getLockName()

getLockName ( $name)
protected

См. определение в файле mysqlcommonconnection.php строка 327

◆ getMaxAllowedPacket()

getMaxAllowedPacket ( )

Returns max packet length to send to or receive from the database server.

Возвращает
int

Переопределяет метод предка Connection.

См. определение в файле mysqlcommonconnection.php строка 388

◆ getTableFields()

getTableFields ( $tableName)

@inheritDoc

См. определение в файле mysqlcommonconnection.php строка 80

◆ getType()

getType ( )

@inheritDoc

См. определение в файле mysqlcommonconnection.php строка 342

◆ isIndexExists()

isIndexExists ( $tableName,
array $columns )

@inheritDoc

См. определение в файле mysqlcommonconnection.php строка 44

◆ isTableExists()

isTableExists ( $tableName)

@inheritDoc

См. определение в файле mysqlcommonconnection.php строка 26

◆ lock()

lock ( $name,
$timeout = 0 )

@inheritDoc

См. определение в файле mysqlcommonconnection.php строка 295

◆ renameTable()

renameTable ( $currentName,
$newName )

@inheritDoc

См. определение в файле mysqlcommonconnection.php строка 210

◆ rollbackTransaction()

rollbackTransaction ( )

@inheritDoc

Исключения
TransactionException

См. определение в файле mysqlcommonconnection.php строка 267

◆ selectDatabase()

selectDatabase ( $database)
abstract

Selects the default database for database queries.

Аргументы
string$databaseDatabase name.
Возвращает
bool

Переопределяется в MysqliConnection.

◆ setStorageEngine()

setStorageEngine ( )

Sets default storage engine for all consequent CREATE TABLE statements and all other relevant DDL. Storage engine read from .settings.php file. It is 'engine' key of the 'default' from the 'connections'.

Возвращает
void

См. определение в файле mysqlcommonconnection.php строка 353

◆ startTransaction()

startTransaction ( )

@inheritDoc

См. определение в файле mysqlcommonconnection.php строка 230

◆ unlock()

unlock ( $name)

@inheritDoc

См. определение в файле mysqlcommonconnection.php строка 313

Поля

◆ $engine

$engine = ""
protected

См. определение в файле mysqlcommonconnection.php строка 11

◆ $transactionLevel

int $transactionLevel = 0
protected

См. определение в файле mysqlcommonconnection.php строка 12


Объявления и описания членов класса находятся в файле: