BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
Database Class Reference
Inheritance diagram for Database:
Collaboration diagram for Database:

Additional Inherited Members

- Public Member Functions inherited from DatabaseBase
 getServerInfo ()
 
 getDelimiter ()
 
 debug ($debug=null)
 
 bufferResults ($buffer=null)
 
 trxLevel ()
 
 trxTimestamp ()
 
 tablePrefix ($prefix=null)
 
 dbSchema ($schema=null)
 
 setFileHandle ($fh)
 
 getLBInfo ($name=null)
 
 setLBInfo ($name, $value=null)
 
 setLazyMasterHandle (IDatabase $conn)
 
 getLazyMasterHandle ()
 
 setTransactionProfiler (TransactionProfiler $profiler)
 
 cascadingDeletes ()
 
 cleanupTriggers ()
 
 strictIPs ()
 
 realTimestamps ()
 
 implicitGroupby ()
 
 implicitOrderby ()
 
 searchableIPs ()
 
 functionalIndexes ()
 
 lastQuery ()
 
 doneWrites ()
 
 lastDoneWrites ()
 
 writesPending ()
 
 writesOrCallbacksPending ()
 
 pendingWriteQueryDuration ()
 
 pendingWriteCallers ()
 
 isOpen ()
 
 setFlag ($flag)
 
 clearFlag ($flag)
 
 getFlag ($flag)
 
 getProperty ($name)
 
 getWikiID ()
 
 getSchemaPath ()
 
 getUpdateKeysPath ()
 
 indexInfo ($table, $index, $fname=__METHOD__)
 
 strencode ($s)
 
 __construct (array $params)
 
 __sleep ()
 
 connectionErrorHandler ($errno, $errstr)
 
 close ()
 
 reportConnectionError ($error= 'Unknown error')
 
 query ($sql, $fname=__METHOD__, $tempIgnore=false)
 
 reportQueryError ($error, $errno, $sql, $fname, $tempIgnore=false)
 
 execute ($prepared, $args=null)
 
 fillPrepared ($preparedQuery, $args)
 
 freeResult ($res)
 
 selectField ($table, $var, $cond= '', $fname=__METHOD__, $options=[])
 
 selectFieldValues ($table, $var, $cond= '', $fname=__METHOD__, $options=[], $join_conds=[])
 
 makeSelectOptions ($options)
 
 makeGroupByWithHaving ($options)
 
 makeOrderBy ($options)
 
 select ($table, $vars, $conds= '', $fname=__METHOD__, $options=[], $join_conds=[])
 
 selectSQLText ($table, $vars, $conds= '', $fname=__METHOD__, $options=[], $join_conds=[])
 
 selectRow ($table, $vars, $conds, $fname=__METHOD__, $options=[], $join_conds=[])
 
 estimateRowCount ($table, $vars= '*', $conds= '', $fname=__METHOD__, $options=[])
 
 selectRowCount ($tables, $vars= '*', $conds= '', $fname=__METHOD__, $options=[], $join_conds=[])
 
 fieldExists ($table, $field, $fname=__METHOD__)
 
 indexExists ($table, $index, $fname=__METHOD__)
 
 tableExists ($table, $fname=__METHOD__)
 
 indexUnique ($table, $index)
 
 insert ($table, $a, $fname=__METHOD__, $options=[])
 
 update ($table, $values, $conds, $fname=__METHOD__, $options=[])
 
 makeList ($a, $mode=LIST_COMMA)
 
 makeWhereFrom2d ($data, $baseKey, $subKey)
 
 aggregateValue ($valuedata, $valuename= 'value')
 
 bitNot ($field)
 
 bitAnd ($fieldLeft, $fieldRight)
 
 bitOr ($fieldLeft, $fieldRight)
 
 buildConcat ($stringList)
 
 buildGroupConcatField ($delim, $table, $field, $conds= '', $join_conds=[])
 
 selectDB ($db)
 
 getDBname ()
 
 getServer ()
 
 tableName ($name, $format= 'quoted')
 
 tableNames ()
 
 tableNamesN ()
 
 tableNameWithAlias ($name, $alias=false)
 
 tableNamesWithAlias ($tables)
 
 fieldNameWithAlias ($name, $alias=false)
 
 fieldNamesWithAlias ($fields)
 
 addQuotes ($s)
 
 addIdentifierQuotes ($s)
 
 isQuotedIdentifier ($name)
 
 buildLike ()
 
 anyChar ()
 
 anyString ()
 
 nextSequenceValue ($seqName)
 
 useIndexClause ($index)
 
 replace ($table, $uniqueIndexes, $rows, $fname=__METHOD__)
 
 upsert ($table, array $rows, array $uniqueIndexes, array $set, $fname=__METHOD__)
 
 deleteJoin ($delTable, $joinTable, $delVar, $joinVar, $conds, $fname=__METHOD__)
 
 textFieldSize ($table, $field)
 
 lowPriorityOption ()
 
 delete ($table, $conds, $fname=__METHOD__)
 
 insertSelect ($destTable, $srcTable, $varMap, $conds, $fname=__METHOD__, $insertOptions=[], $selectOptions=[])
 
 limitResult ($sql, $limit, $offset=false)
 
 unionSupportsOrderAndLimit ()
 
 unionQueries ($sqls, $all)
 
 conditional ($cond, $trueVal, $falseVal)
 
 strreplace ($orig, $old, $new)
 
 getServerUptime ()
 
 wasDeadlock ()
 
 wasLockTimeout ()
 
 wasErrorReissuable ()
 
 wasReadOnlyError ()
 
 wasConnectionError ($errno)
 
 masterPosWait (DBMasterPos $pos, $timeout)
 
 getSlavePos ()
 
 getMasterPos ()
 
 onTransactionIdle ($callback)
 
 onTransactionPreCommitOrIdle ($callback)
 
 startAtomic ($fname=__METHOD__)
 
 endAtomic ($fname=__METHOD__)
 
 doAtomicSection ($fname, $callback)
 
 begin ($fname=__METHOD__)
 
 commit ($fname=__METHOD__, $flush= '')
 
 rollback ($fname=__METHOD__, $flush= '')
 
 duplicateTableStructure ($oldName, $newName, $temporary=false, $fname=__METHOD__)
 
 listTables ($prefix=null, $fname=__METHOD__)
 
 clearViewsCache ()
 
 listViews ($prefix=null, $fname=__METHOD__)
 
 isView ($name)
 
 timestamp ($ts=0)
 
 timestampOrNull ($ts=null)
 
 ping ()
 
 getSessionLagStatus ()
 
 getTransactionLagStatus ()
 
 getApproximateLagStatus ()
 
 getLag ()
 
 maxListLen ()
 
 encodeBlob ($b)
 
 decodeBlob ($b)
 
 setSessionOptions (array $options)
 
 sourceFile ($filename, $lineCallback=false, $resultCallback=false, $fname=false, $inputCallback=false)
 
 patchPath ($patch)
 
 setSchemaVars ($vars)
 
 sourceStream ($fp, $lineCallback=false, $resultCallback=false, $fname=__METHOD__, $inputCallback=false)
 
 streamStatementEnd (&$sql, &$newLine)
 
 lockIsFree ($lockName, $method)
 
 lock ($lockName, $method, $timeout=5)
 
 unlock ($lockName, $method)
 
 getScopedLockAndFlush ($lockKey, $fname, $timeout)
 
 namedLocksEnqueue ()
 
 lockTables ($read, $write, $method, $lowPriority=true)
 
 unlockTables ($method)
 
 dropTable ($tableName, $fName=__METHOD__)
 
 getSearchEngine ()
 
 getInfinity ()
 
 encodeExpiry ($expiry)
 
 decodeExpiry ($expiry, $format=TS_MW)
 
 setBigSelects ($value=true)
 
 isReadOnly ()
 
 __toString ()
 
 __destruct ()
 
- Public Member Functions inherited from IDatabase
 getType ()
 
 open ($server, $user, $password, $dbName)
 
 fetchObject ($res)
 
 fetchRow ($res)
 
 numRows ($res)
 
 numFields ($res)
 
 fieldName ($res, $n)
 
 insertId ()
 
 dataSeek ($res, $row)
 
 lastErrno ()
 
 lastError ()
 
 fieldInfo ($table, $field)
 
 affectedRows ()
 
 getSoftwareLink ()
 
 getServerVersion ()
 
 selectFieldValues ($table, $var, $cond= '', $fname=__METHOD__, $options=[])
 
- Static Public Member Functions inherited from DatabaseBase
static factory ($dbType, $p=[])
 
- Public Attributes inherited from DatabaseBase
const DEADLOCK_TRIES = 4
 
const DEADLOCK_DELAY_MIN = 500000
 
const DEADLOCK_DELAY_MAX = 1500000
 
 $mUser
 
 $mPassword
 
 $mDBname
 
- Protected Member Functions inherited from DatabaseBase
 ignoreErrors ($ignoreErrors=null)
 
 getTransactionProfiler ()
 
 installErrorHandler ()
 
 restoreErrorHandler ()
 
 getLogContext (array $extras=[])
 
 assertOpen ()
 
 closeConnection ()
 
 doQuery ($sql)
 
 isWriteQuery ($sql)
 
 isTransactableQuery ($sql)
 
 prepare ($sql, $func= 'DatabaseBase::prepare')
 
 freePrepared ($prepared)
 
 fillPreparedArg ($matches)
 
 makeInsertOptions ($options)
 
 makeUpdateOptionsArray ($options)
 
 makeUpdateOptions ($options)
 
 tableNamesWithUseIndexOrJOIN ($tables, $use_index=[], $join_conds=[])
 
 indexName ($index)
 
 escapeLikeInternal ($s)
 
 nativeReplace ($table, $rows, $fname)
 
 runOnTransactionIdleCallbacks ()
 
 runOnTransactionPreCommitCallbacks ()
 
 doBegin ($fname)
 
 doCommit ($fname)
 
 doRollback ($fname)
 
 resultObject ($result)
 
 replaceVars ($ins)
 
 getSchemaVars ()
 
 getDefaultSchemaVars ()
 
 getReadOnlyReason ()
 
- Static Protected Member Functions inherited from DatabaseBase
static generalizeSQL ($sql)
 
- Protected Attributes inherited from DatabaseBase
 $mLastQuery = ''
 
 $mDoneWrites = false
 
 $mPHPError = false
 
 $mServer
 
 $srvCache
 
 $mConn = null
 
 $mOpened = false
 
 $mTrxIdleCallbacks = []
 
 $mTrxPreCommitCallbacks = []
 
 $mTablePrefix
 
 $mSchema
 
 $mFlags
 
 $mForeign
 
 $mLBInfo = []
 
 $mDefaultBigSelects = null
 
 $mSchemaVars = false
 
 $mSessionVars = []
 
 $preparedArgs
 
 $htmlErrors
 
 $delimiter = ';'
 
 $mTrxLevel = 0
 
 $mTrxShortId = ''
 
 $fileHandle = null
 
 $allViews = null
 
 $trxProfiler
 

Detailed Description

Since
1.27

The documentation for this class was generated from the following file: