116publicfunctionclose( $fname = __METHOD__ );
175 $tables, $var, $cond =
'', $fname = __METHOD__, $options = [], $join_conds = []
211 $tables, $var, $cond =
'', $fname = __METHOD__, $options = [], $join_conds = []
499 $tables, $var =
'*', $conds =
'', $fname = __METHOD__, $options = [], $join_conds = []
535 $tables, $var =
'*', $conds =
'', $fname = __METHOD__, $options = [], $join_conds = []
Representing a group of expressions chained via AND.
A composite leaf representing an expression.
Representing a group of expressions chained via OR.
Build SELECT queries with a fluent interface.
A query builder for UNION queries takes SelectQueryBuilder objects.
A database connection without write operations.
getSessionLagStatus()
Get a cached estimate of the seconds of replication lag on this database server, using the estimate o...
ping()
Ping the server and try to reconnect if it there is no connection.
close( $fname=__METHOD__)
Close the database connection.
getServerVersion()
A string describing the current software version.
getType()
Get the RDBMS type of the server (e.g.
newSelectQueryBuilder()
Create an empty SelectQueryBuilder which can be used to run queries against this connection.
encodeBlob( $b)
Some DBMSs have a special format for inserting into blob fields, they don't allow simple quoted strin...
getDBname()
Get the current database name; null if there isn't one.
selectDomain( $domain)
Set the current domain (database, schema, and table prefix)
selectField( $tables, $var, $cond='', $fname=__METHOD__, $options=[], $join_conds=[])
A SELECT wrapper which returns a single field from a single result row.
selectRow( $tables, $vars, $conds, $fname=__METHOD__, $options=[], $join_conds=[])
Wrapper to IDatabase::select() that only fetches one row (via LIMIT)
selectRowCount( $tables, $var=' *', $conds='', $fname=__METHOD__, $options=[], $join_conds=[])
Get the number of rows in dataset.
decodeBlob( $b)
Some DBMSs return a special placeholder object representing blob fields in result objects.
dbSchema( $schema=null)
Get/set the db schema.
select( $tables, $vars, $conds='', $fname=__METHOD__, $options=[], $join_conds=[])
Execute a SELECT query constructed using the various parameters provided.
lastErrno()
Get the RDBMS-specific error code from the last attempted query statement.
selectFieldValues( $tables, $var, $cond='', $fname=__METHOD__, $options=[], $join_conds=[])
A SELECT wrapper which returns a list of single field values from result rows.
lastError()
Get the RDBMS-specific error description from the last attempted query statement.
tablePrefix( $prefix=null)
Get/set the table prefix.
getServer()
Get the hostname or IP address of the server.
getSoftwareLink()
Returns a wikitext style link to the DB's website (e.g.
getLag()
Get the seconds of replication lag on this database server.
estimateRowCount( $tables, $var=' *', $conds='', $fname=__METHOD__, $options=[], $join_conds=[])
Estimate the number of rows in dataset.
getServerName()
Get the readable name for the server.
getServerInfo()
Get a human-readable string describing the current software version.
const UNION_ALL
Parameter to unionQueries() for UNION ALL.
getDomainID()
Return the currently selected domain ID.
databasesAreIndependent()
Returns true if DBs are assumed to be on potentially different servers.
expr(string $field, string $op, $value)
See Expression::__construct()
newUnionQueryBuilder()
Create an empty UnionQueryBuilder which can be used to run queries against this connection.
andExpr(array $conds)
See Expression::__construct()
const UNION_DISTINCT
Parameter to unionQueries() for UNION DISTINCT.
orExpr(array $conds)
See Expression::__construct()
__toString()
Get a debugging string that mentions the database type, the ID of this instance, and the ID of any un...
Interface for query language.