BaseConnection.php
system/Database/BaseConnection.php
1 class
73 methods
class BaseConnection
__construct
(array $params)
initialize
()
close
()
_close
()
persistentConnect
()
getConnection
(?string $alias = null)
getDatabase
()
setPrefix
(string $prefix = '')
getPrefix
()
getPlatform
()
setAliasedTables
(array $aliases)
addTableAlias
(string $alias)
execute
(string $sql)
query
(string $sql, $binds = null, bool $setEscapeFlags = true, string $queryClass = '')
simpleQuery
(string $sql)
transOff
()
transStrict
(bool $mode = true)
transStart
(bool $testMode = false)
transException
(bool $transException)
transComplete
()
transStatus
()
transBegin
(bool $testMode = false)
transCommit
()
transRollback
()
resetTransStatus
()
handleTransStatus
()
_transBegin
()
_transCommit
()
_transRollback
()
table
($tableName)
newQuery
()
prepare
(Closure $func, array $options = [])
getLastQuery
()
showLastQuery
()
getConnectStart
()
getConnectDuration
(int $decimals = 6)
protectIdentifiers
($item, bool $prefixSingle = false, ?bool $protectIdentifiers = null, bool $fieldExists = true)
protectDotItem
(string $item, string $alias, bool $protectIdentifiers, bool $fieldExists)
escapeIdentifier
($item)
escapeTableName
(TableName $tableName)
escapeIdentifiers
($item)
prefixTable
(string $table = '')
affectedRows
()
escape
($str)
escapeString
($str, bool $like = false)
escapeLikeString
($str)
_escapeString
(string $str)
callFunction
(string $functionName, ...$params)
getDriverFunctionPrefix
()
listTables
(bool $constrainByPrefix = false)
tableExists
(string $tableName, bool $cached = true)
getFieldNames
($tableName)
fieldExists
(string $fieldName, string $tableName)
getFieldData
(string $table)
getIndexData
(string $table)
getForeignKeyData
(string $table)
foreignKeyDataToObjects
(array $data)
disableForeignKeyChecks
()
enableForeignKeyChecks
()
pretend
(bool $pretend = true)
resetDataCache
()
isWriteType
($sql)
error
()
insertID
()
_listTables
(bool $constrainByPrefix = false, ?string $tableName = null)
_listColumns
($table = '')
_fieldData
(string $table)
_indexData
(string $table)
_foreignKeyData
(string $table)
_disableForeignKeyChecks
()
_enableForeignKeyChecks
()
__get
(string $key)
__isset
(string $key)