Movatterモバイル変換


[0]ホーム

URL:


MediaWiki master
IReadableDatabase.php
Go to the documentation of this file.
1<?php
6namespaceWikimedia\Rdbms;
7
8use stdClass;
9use Stringable;
10useWikimedia\Rdbms\Database\DbQuoter;
11useWikimedia\Rdbms\Database\IDatabaseFlags;
12useWikimedia\Rdbms\Platform\ISQLPlatform;
13
20interfaceIReadableDatabaseextends Stringable,ISQLPlatform,DbQuoter,IDatabaseFlags {
21
23publicconstUNION_ALL =true;
25publicconstUNION_DISTINCT =false;
26
34publicfunctiongetServerInfo();
35
42publicfunctiontablePrefix( $prefix =null );
43
50publicfunctiondbSchema( $schema =null );
51
55publicfunctionisOpen();
56
64publicfunctiongetDomainID();
65
71publicfunctiongetType();
72
78publicfunctionlastErrno();
79
85publicfunctionlastError();
86
94publicfunctiongetSoftwareLink();
95
101publicfunctiongetServerVersion();
102
116publicfunctionclose( $fname = __METHOD__ );
117
128publicfunctionnewSelectQueryBuilder():SelectQueryBuilder;
129
141publicfunctionnewUnionQueryBuilder():UnionQueryBuilder;
142
174publicfunctionselectField(
175 $tables, $var, $cond ='', $fname = __METHOD__, $options = [], $join_conds = []
176 );
177
210publicfunctionselectFieldValues(
211 $tables, $var, $cond ='', $fname = __METHOD__, $options = [], $join_conds = []
212 ): array;
213
421publicfunctionselect(
422 $tables,
423 $vars,
424 $conds ='',
425 $fname = __METHOD__,
426 $options = [],
427 $join_conds = []
428 );
429
460publicfunctionselectRow(
461 $tables,
462 $vars,
463 $conds,
464 $fname = __METHOD__,
465 $options = [],
466 $join_conds = []
467 );
468
498publicfunctionestimateRowCount(
499 $tables, $var ='*', $conds ='', $fname = __METHOD__, $options = [], $join_conds = []
500 ): int;
501
534publicfunctionselectRowCount(
535 $tables, $var ='*', $conds ='', $fname = __METHOD__, $options = [], $join_conds = []
536 ): int;
537
550publicfunctiondatabasesAreIndependent();
551
564publicfunctionselectDomain( $domain );
565
571publicfunctiongetDBname();
572
578publicfunctiongetServer();
579
586publicfunctiongetServerName();
587
593publicfunctionping();
594
603publicfunctiongetLag();
604
618publicfunctiongetSessionLagStatus();
619
630publicfunctionencodeBlob( $b );
631
641publicfunctiondecodeBlob( $b );
642
657publicfunctionexpr(string $field,string $op, $value ):Expression;
658
669publicfunctionandExpr( array $conds ):AndExpressionGroup;
670
681publicfunctionorExpr( array $conds ):OrExpressionGroup;
682
690publicfunction__toString();
691}
Wikimedia\Rdbms\AndExpressionGroup
Representing a group of expressions chained via AND.
DefinitionAndExpressionGroup.php:10
Wikimedia\Rdbms\Expression
A composite leaf representing an expression.
DefinitionExpression.php:14
Wikimedia\Rdbms\OrExpressionGroup
Representing a group of expressions chained via OR.
DefinitionOrExpressionGroup.php:10
Wikimedia\Rdbms\SelectQueryBuilder
Build SELECT queries with a fluent interface.
DefinitionSelectQueryBuilder.php:26
Wikimedia\Rdbms\UnionQueryBuilder
A query builder for UNION queries takes SelectQueryBuilder objects.
DefinitionUnionQueryBuilder.php:16
Wikimedia\Rdbms\Database\DbQuoter
DefinitionDbQuoter.php:10
Wikimedia\Rdbms\Database\IDatabaseFlags
DefinitionIDatabaseFlags.php:11
Wikimedia\Rdbms\IReadableDatabase
A database connection without write operations.
DefinitionIReadableDatabase.php:20
Wikimedia\Rdbms\IReadableDatabase\getSessionLagStatus
getSessionLagStatus()
Get a cached estimate of the seconds of replication lag on this database server, using the estimate o...
Wikimedia\Rdbms\IReadableDatabase\ping
ping()
Ping the server and try to reconnect if it there is no connection.
Wikimedia\Rdbms\IReadableDatabase\close
close( $fname=__METHOD__)
Close the database connection.
Wikimedia\Rdbms\IReadableDatabase\getServerVersion
getServerVersion()
A string describing the current software version.
Wikimedia\Rdbms\IReadableDatabase\getType
getType()
Get the RDBMS type of the server (e.g.
Wikimedia\Rdbms\IReadableDatabase\newSelectQueryBuilder
newSelectQueryBuilder()
Create an empty SelectQueryBuilder which can be used to run queries against this connection.
Wikimedia\Rdbms\IReadableDatabase\encodeBlob
encodeBlob( $b)
Some DBMSs have a special format for inserting into blob fields, they don't allow simple quoted strin...
Wikimedia\Rdbms\IReadableDatabase\getDBname
getDBname()
Get the current database name; null if there isn't one.
Wikimedia\Rdbms\IReadableDatabase\selectDomain
selectDomain( $domain)
Set the current domain (database, schema, and table prefix)
Wikimedia\Rdbms\IReadableDatabase\selectField
selectField( $tables, $var, $cond='', $fname=__METHOD__, $options=[], $join_conds=[])
A SELECT wrapper which returns a single field from a single result row.
Wikimedia\Rdbms\IReadableDatabase\selectRow
selectRow( $tables, $vars, $conds, $fname=__METHOD__, $options=[], $join_conds=[])
Wrapper to IDatabase::select() that only fetches one row (via LIMIT)
Wikimedia\Rdbms\IReadableDatabase\selectRowCount
selectRowCount( $tables, $var=' *', $conds='', $fname=__METHOD__, $options=[], $join_conds=[])
Get the number of rows in dataset.
Wikimedia\Rdbms\IReadableDatabase\decodeBlob
decodeBlob( $b)
Some DBMSs return a special placeholder object representing blob fields in result objects.
Wikimedia\Rdbms\IReadableDatabase\dbSchema
dbSchema( $schema=null)
Get/set the db schema.
Wikimedia\Rdbms\IReadableDatabase\select
select( $tables, $vars, $conds='', $fname=__METHOD__, $options=[], $join_conds=[])
Execute a SELECT query constructed using the various parameters provided.
Wikimedia\Rdbms\IReadableDatabase\lastErrno
lastErrno()
Get the RDBMS-specific error code from the last attempted query statement.
Wikimedia\Rdbms\IReadableDatabase\selectFieldValues
selectFieldValues( $tables, $var, $cond='', $fname=__METHOD__, $options=[], $join_conds=[])
A SELECT wrapper which returns a list of single field values from result rows.
Wikimedia\Rdbms\IReadableDatabase\isOpen
isOpen()
Wikimedia\Rdbms\IReadableDatabase\lastError
lastError()
Get the RDBMS-specific error description from the last attempted query statement.
Wikimedia\Rdbms\IReadableDatabase\tablePrefix
tablePrefix( $prefix=null)
Get/set the table prefix.
Wikimedia\Rdbms\IReadableDatabase\getServer
getServer()
Get the hostname or IP address of the server.
Wikimedia\Rdbms\IReadableDatabase\getSoftwareLink
getSoftwareLink()
Returns a wikitext style link to the DB's website (e.g.
Wikimedia\Rdbms\IReadableDatabase\getLag
getLag()
Get the seconds of replication lag on this database server.
Wikimedia\Rdbms\IReadableDatabase\estimateRowCount
estimateRowCount( $tables, $var=' *', $conds='', $fname=__METHOD__, $options=[], $join_conds=[])
Estimate the number of rows in dataset.
Wikimedia\Rdbms\IReadableDatabase\getServerName
getServerName()
Get the readable name for the server.
Wikimedia\Rdbms\IReadableDatabase\getServerInfo
getServerInfo()
Get a human-readable string describing the current software version.
Wikimedia\Rdbms\IReadableDatabase\UNION_ALL
const UNION_ALL
Parameter to unionQueries() for UNION ALL.
DefinitionIReadableDatabase.php:23
Wikimedia\Rdbms\IReadableDatabase\getDomainID
getDomainID()
Return the currently selected domain ID.
Wikimedia\Rdbms\IReadableDatabase\databasesAreIndependent
databasesAreIndependent()
Returns true if DBs are assumed to be on potentially different servers.
Wikimedia\Rdbms\IReadableDatabase\expr
expr(string $field, string $op, $value)
See Expression::__construct()
Wikimedia\Rdbms\IReadableDatabase\newUnionQueryBuilder
newUnionQueryBuilder()
Create an empty UnionQueryBuilder which can be used to run queries against this connection.
Wikimedia\Rdbms\IReadableDatabase\andExpr
andExpr(array $conds)
See Expression::__construct()
Wikimedia\Rdbms\IReadableDatabase\UNION_DISTINCT
const UNION_DISTINCT
Parameter to unionQueries() for UNION DISTINCT.
DefinitionIReadableDatabase.php:25
Wikimedia\Rdbms\IReadableDatabase\orExpr
orExpr(array $conds)
See Expression::__construct()
Wikimedia\Rdbms\IReadableDatabase\__toString
__toString()
Get a debugging string that mentions the database type, the ID of this instance, and the ID of any un...
Wikimedia\Rdbms\Platform\ISQLPlatform
Interface for query language.
DefinitionISQLPlatform.php:21
Wikimedia\Rdbms
DefinitionChangedTablesTracker.php:3

[8]ページ先頭

©2009-2025 Movatter.jp