MediaWiki master
Database

This group deals with database interface functions and query specifics/optimisations. More...

Collaboration diagram for Database:

Files

file  CloneDatabase.php
 Helper class for making a copy of the database, mostly for unit testing.
 
file  DBAccessObjectUtils.php
 This file contains database access object related constants.
 
file  IDBAccessObject.php
 This file contains database access object related constants.
 
file  MWLBFactory.php
 Generator of database load balancing objects.
 

Classes

class  Wikimedia\Rdbms\AtomicSectionIdentifier
 Class used for token representing identifiers for atomic sections from IDatabase instances. More...
 
class  Wikimedia\Rdbms\ChangedTablesTracker
 Utility class that keeps a list of DB tables that were (presumably) changed by write queries. More...
 
class  Wikimedia\Rdbms\ChronologyProtector
 Provide a given client with protection against visible database lag. More...
 
class  Wikimedia\Rdbms\ConnectionManager
 Database connection manager. More...
 
class  Wikimedia\Rdbms\CriticalSessionInfo
 
class  Wikimedia\Rdbms\Database
 A single concrete connection to a relational database. More...
 
class  Wikimedia\Rdbms\DatabaseDomain
 Class to handle database/schema/prefix specifications for IDatabase. More...
 
class  Wikimedia\Rdbms\DatabaseFactory
 Constructs Database objects. More...
 
class  Wikimedia\Rdbms\Database\DatabaseFlags
 
class  Wikimedia\Rdbms\DatabasePostgres
 Postgres database abstraction layer. More...
 
class  Wikimedia\Rdbms\DatabaseSqlite
 This is the SQLite database abstraction layer. More...
 
class  Wikimedia\Rdbms\DBAccessError
 Exception class for attempted DB access. More...
 
class  Wikimedia\Rdbms\DBConnectionError
 
class  Wikimedia\Rdbms\DBConnRef
 Helper class used for automatically re-using IDatabase connections and lazily establishing the actual network connection to a database host. More...
 
class  Wikimedia\Rdbms\DBError
 Database error base class. More...
 
class  Wikimedia\Rdbms\DBExpectedError
 Base class for the more common types of database errors. More...
 
class  Wikimedia\Rdbms\DBLanguageError
 
class  Wikimedia\Rdbms\DBQueryDisconnectedError
 
class  Wikimedia\Rdbms\DBQueryError
 
class  Wikimedia\Rdbms\DBQueryTimeoutError
 Error thrown when a query times out. More...
 
class  Wikimedia\Rdbms\DBReadOnlyError
 
class  Wikimedia\Rdbms\DBReadOnlyRoleError
 Exception class for attempted DB write access to a DBConnRef with the DB_REPLICA role. More...
 
class  Wikimedia\Rdbms\DBReplicationWaitError
 Exception class for replica DB wait errors. More...
 
class  Wikimedia\Rdbms\DBSessionStateError
 
class  Wikimedia\Rdbms\DBTransactionError
 
class  Wikimedia\Rdbms\DBTransactionSizeError
 
class  Wikimedia\Rdbms\DBTransactionStateError
 
class  Wikimedia\Rdbms\DBUnexpectedError
 
class  Wikimedia\Rdbms\DeleteQueryBuilder
 A query builder for DELETE queries with a fluent interface. More...
 
interface  Wikimedia\Rdbms\Field
 Base for all database-specific classes representing information about database fields. More...
 
class  Wikimedia\Rdbms\GeneralizedSql
 Lazy-loaded wrapper for simplification and scrubbing of SQL queries for profiling. More...
 
interface  Wikimedia\Rdbms\IBlob
 Wrapper allowing us to distinguish a blob from a normal string and an array of strings. More...
 
interface  Wikimedia\Rdbms\IConnectionProvider
 Provide primary and replica IDatabase connections. More...
 
interface  Wikimedia\Rdbms\IDatabase
 Interface to a relational database. More...
 
interface  Wikimedia\Rdbms\Database\IDatabaseFlags
 
interface  Wikimedia\Rdbms\IDatabaseForOwner
 Internal interface for relational database handles exposed to their owner. More...
 
interface  Wikimedia\Rdbms\ILBFactory
 Manager of ILoadBalancer objects and, indirectly, IDatabase connections. More...
 
interface  Wikimedia\Rdbms\ILoadBalancer
 This class is a delegate to ILBFactory for a given database cluster. More...
 
interface  Wikimedia\Rdbms\ILoadBalancerForOwner
 Internal interface for load balancer instances exposed to their owner. More...
 
interface  Wikimedia\Rdbms\ILoadMonitor
 Database load monitoring interface. More...
 
interface  Wikimedia\Rdbms\IMaintainableDatabase
 Advanced database interface for IDatabase handles that include maintenance methods. More...
 
class  Wikimedia\Rdbms\InsertQueryBuilder
 Build INSERT queries with a fluent interface. More...
 
interface  Wikimedia\Rdbms\IReadableDatabase
 A database connection without write operations. More...
 
interface  Wikimedia\Rdbms\IResultWrapper
 Result wrapper for grabbing data queried from an IDatabase object. More...
 
class  Wikimedia\Rdbms\LBFactory
 
class  Wikimedia\Rdbms\LBFactoryMulti
 LoadBalancer manager for sites with several "main" database clusters. More...
 
class  Wikimedia\Rdbms\LBFactorySimple
 LoadBalancer manager for sites with one "main" cluster and any number of "external" clusters. More...
 
class  Wikimedia\Rdbms\LBFactorySingle
 LoadBalancer manager for sites with one "main" cluster using only injected database connections. More...
 
class  Wikimedia\Rdbms\LoadBalancer
 
class  Wikimedia\Rdbms\LoadBalancerDisabled
 Placeholder LoadBalancer that throws an error upon attempts to access connections. More...
 
class  Wikimedia\Rdbms\LoadBalancerSingle
 Trivial LoadBalancer that always returns an injected connection handle. More...
 
class  Wikimedia\Rdbms\LoadMonitor
 Basic DB load monitor with no external dependencies. More...
 
class  Wikimedia\Rdbms\LoadMonitorNull
 
class  MWLBFactory
 MediaWiki-specific class for generating database load balancers. More...
 
class  Wikimedia\Rdbms\Replication\MysqlReplicationReporter
 
class  Wikimedia\Rdbms\Query
 Holds information on Query to be executed. More...
 
class  Wikimedia\Rdbms\QueryBuilderFromRawSql
 This is to contain any regex on SQL work and get rid of them eventually. More...
 
class  Wikimedia\Rdbms\QueryStatus
 
class  Wikimedia\Rdbms\ReplaceQueryBuilder
 Build REPLACE queries with a fluent interface. More...
 
class  Wikimedia\Rdbms\Replication\ReplicationReporter
 
class  Wikimedia\Rdbms\ResultWrapper
 Result wrapper for grabbing data queried from an IDatabase object. More...
 
class  Wikimedia\Rdbms\SelectQueryBuilder
 Build SELECT queries with a fluent interface. More...
 
class  Wikimedia\Rdbms\ServerInfo
 Container for accessing information about the database servers in a database cluster. More...
 
class  Wikimedia\Rdbms\SessionConsistentConnectionManager
 Database connection manager. More...
 
class  Wikimedia\Rdbms\Subquery
 
class  Wikimedia\Rdbms\TransactionIdentifier
 Class used for token representing identifiers for atomic transactions from IDatabase instances. More...
 
class  Wikimedia\Rdbms\TransactionManager
 
class  Wikimedia\Rdbms\TransactionProfiler
 Detect high-contention DB queries via profiling calls. More...
 
class  Wikimedia\Rdbms\UnionQueryBuilder
 A query builder for UNION queries takes SelectQueryBuilder objects. More...
 
class  Wikimedia\Rdbms\UpdateQueryBuilder
 Build UPDATE queries with a fluent interface. More...
 

Detailed Description

This group deals with database interface functions and query specifics/optimisations.