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

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

 Disconnect ()
 DateFormatToDB ($format, $field=false)
 DatetimeToTimestampFunction ($fieldName)
 DatetimeToDateFunction ($strValue)
 CompareDates ($date1, $date2)
 PrepareFields ($strTableName, $strPrefix="str_", $strSuffix="")
 PrepareInsert ($strTableName, $arFields)
 PrepareUpdate ($strTableName, $arFields, $strFileDir="", $lang=false, $strTableAlias="")
 PrepareUpdateBind ($strTableName, $arFields, $strFileDir, $lang, &$arBinds, $strTableAlias="")
 PrepareUpdateJoin ($strTableName, $arFields, $from, $where)
 Insert ($table, $arFields, $error_position="", $DEBUG=false, $EXIST_ID="", $ignore_errors=false)
 Add ($tablename, $arFields, $arCLOBFields=[], $strFileDir="", $ignore_errors=false, $error_position="", $arOptions=[])
 LockTables ($str)
 UnLockTables ()
 ToChar ($expr, $len=0)
 Instr ($str, $toFind)
 CreateIndex ($indexName, $tableName, $columns, $unique=false, $fulltext=false)
 ForSqlLike ($strValue, $iMaxLength=0)
 GetTableFields ($table)
Открытые члены унаследованные от CAllDatabase
 StartUsingMasterOnly ()
 StopUsingMasterOnly ()
 getConnection ()
 Connect ($DBHost, $DBName, $DBLogin, $DBPassword, $connectionName="")
 DoConnect ($connectionName='')
 startSqlTracker ()
 GetVersion ()
 GetNowFunction ()
 GetNowDate ()
 DateToCharFunction ($strFieldName, $strType="FULL", $lang=false, $bSearchInSitesOnly=false)
 CharToDateFunction ($strValue, $strType="FULL", $lang=false)
 Concat ()
 Substr ($str, $from, $length=null)
 IsNull ($expression, $result)
 Length ($field)
 ToNumber ($expr)
 TopSql ($strSql, $nTopCount)
 LastID ()
 GetTableFieldsList ($table)
 Query ($strSql, $bIgnoreErrors=false, $error_position="", $arOptions=[])
 QueryBind ($strSql, $arBinds, $bIgnoreErrors=false)
 QueryLong ($strSql, $bIgnoreErrors=false)
 ForSql ($strValue, $iMaxLength=0)
 TableExists ($tableName)
 quote ($identifier)
 PrepareUpdate ($strTableName, $arFields)
 Update ($table, $arFields, $WHERE="", $error_position="", $DEBUG=false, $ignore_errors=false, $additional_check=true)
 InitTableVarsForEdit ($tablename, $strIdentFrom="str_", $strIdentTo="str_", $strSuffixFrom="", $bAlways=false)
 ParseSqlBatch ($strSql)
 RunSQLBatch ($filepath)
 IsDate ($value, $format=false, $lang=false, $format_type="SHORT")
 GetErrorMessage ()
 GetErrorSQL ()
 StartTransaction ()
 Commit ()
 Rollback ()
 DDL ($strSql, $bIgnoreErrors=false, $error_position="", $arOptions=[])
 addDebugQuery ($strSql, $exec_time, $node_id=0)
 addDebugTime ($index, $exec_time)
 GetIndexName ($tableName, $arColumns, $bStrict=false)
 IndexExists ($tableName, $arColumns, $bStrict=false)

Открытые статические члены

static CurrentTimeFunction ()
static CurrentDateFunction ()
Открытые статические члены унаследованные от CAllDatabase
static GetDBNodeConnection ($node_id, $bIgnoreErrors=false, $bCheckStatus=true)
static showConnectionError ()
static GetModuleConnection ($module_id, $bModuleInclude=false)
static DateFormatToPHP ($format)
static FormatDate ($strDate, $format="DD.MM.YYYY HH:MI:SS", $new_format="DD.MM.YYYY HH:MI:SS")
static registerAutoload (?string $connectionType=null)

Поля данных

 $db_Conn
 $type = "MYSQL"
 $escL = '`'
 $escR = '`'
Поля данных унаследованные от CAllDatabase
 $DBName
 $DBHost
 $DBLogin
 $DBPassword
 $db_Conn
 $debug
 $DebugToFile
 $ShowSqlStat
 $db_Error
 $db_ErrorSQL
 $result
 $type
 $version
 $column_cache = []
 $bModuleConnection
 $bNodeConnection
 $node_id
 $obSlave = null
 $cntQuery = 0
 $timeQuery = 0.0
 $arQueryDebug = []
 $sqlTracker = null

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

 QueryInternal ($strSql)
 GetError ()
 GetErrorCode ()
 getThreadId ()
Защищенные члены унаследованные от CAllDatabase
 getError ()
 getErrorCode ()

Дополнительные унаследованные члены

Статические открытые данные унаследованные от CAllDatabase
static $arNodes = []
Защищенные данные унаследованные от CAllDatabase
 $connection
 $connectionName = null

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

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

Методы

◆ Add()

Add ( $tablename,
$arFields,
$arCLOBFields = [],
$strFileDir = "",
$ignore_errors = false,
$error_position = "",
$arOptions = [] )

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

◆ CompareDates()

CompareDates ( $date1,
$date2 )

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

◆ CreateIndex()

CreateIndex ( $indexName,
$tableName,
$columns,
$unique = false,
$fulltext = false )

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

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

◆ CurrentDateFunction()

CurrentDateFunction ( )
static

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

◆ CurrentTimeFunction()

CurrentTimeFunction ( )
static

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

◆ DateFormatToDB()

DateFormatToDB ( $format,
$field = false )

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

◆ DatetimeToDateFunction()

DatetimeToDateFunction ( $strValue)

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

◆ DatetimeToTimestampFunction()

DatetimeToTimestampFunction ( $fieldName)

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

◆ Disconnect()

Disconnect ( )

Closes database connection.

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

◆ ForSqlLike()

ForSqlLike ( $strValue,
$iMaxLength = 0 )

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

◆ GetError()

GetError ( )
protected

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

◆ GetErrorCode()

GetErrorCode ( )
protected

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

◆ GetTableFields()

GetTableFields ( $table)

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

◆ getThreadId()

getThreadId ( )
protected

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

◆ Insert()

Insert ( $table,
$arFields,
$error_position = "",
$DEBUG = false,
$EXIST_ID = "",
$ignore_errors = false )

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

◆ Instr()

Instr ( $str,
$toFind )

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

◆ LockTables()

LockTables ( $str)

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

◆ PrepareFields()

PrepareFields ( $strTableName,
$strPrefix = "str_",
$strSuffix = "" )

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

◆ PrepareInsert()

PrepareInsert ( $strTableName,
$arFields )

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

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

◆ PrepareUpdate()

PrepareUpdate ( $strTableName,
$arFields,
$strFileDir = "",
$lang = false,
$strTableAlias = "" )

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

◆ PrepareUpdateBind()

PrepareUpdateBind ( $strTableName,
$arFields,
$strFileDir,
$lang,
& $arBinds,
$strTableAlias = "" )

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

◆ PrepareUpdateJoin()

PrepareUpdateJoin ( $strTableName,
$arFields,
$from,
$where )

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

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

◆ QueryInternal()

QueryInternal ( $strSql)
protected

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

◆ ToChar()

ToChar ( $expr,
$len = 0 )

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

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

◆ UnLockTables()

UnLockTables ( )

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

Поля

◆ $db_Conn

$db_Conn

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

◆ $escL

$escL = '`'

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

◆ $escR

$escR = '`'

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

◆ $type

$type = "MYSQL"

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


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