You are here

class SchemaTestDatabaseConnection in Schema 7

Same name and namespace in other branches
  1. 8 tests/schema_test/SchemaTestDatabaseConnection.php \SchemaTestDatabaseConnection

@file Defines SchemaTestDatabaseConnection.

Hierarchy

Expanded class hierarchy of SchemaTestDatabaseConnection

File

tests/schema_test/SchemaTestDatabaseConnection.php, line 8
Defines SchemaTestDatabaseConnection.

View source
class SchemaTestDatabaseConnection extends DatabaseConnection {
  function __construct(array $connection_options = array()) {
    $this->connectionOptions = $connection_options;
    $this
      ->setPrefix(!empty($this->connectionOptions['prefix']) ? $this->connectionOptions['prefix'] : '');
  }
  public function queryRange($query, $from, $count, array $args = array(), array $options = array()) {
    return NULL;
  }
  function queryTemporary($query, array $args = array(), array $options = array()) {
    return NULL;
  }
  public function driver() {
    return 'schema_test';
  }
  public function databaseType() {
    return 'schema_test';
  }
  public function mapConditionOperator($operator) {
    return NULL;
  }
  public function nextId($existing_id = 0) {
    return NULL;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DatabaseConnection::$connection protected property The actual PDO connection.
DatabaseConnection::$connectionOptions protected property The connection information for this connection object.
DatabaseConnection::$driverClasses protected property Index of what driver-specific class to use for various operations.
DatabaseConnection::$escapedAliases protected property List of escaped aliases names, keyed by unescaped aliases.
DatabaseConnection::$escapedNames protected property List of escaped database, table, and field names, keyed by unescaped names.
DatabaseConnection::$key protected property The key representing this connection.
DatabaseConnection::$logger protected property The current database logging object for this connection.
DatabaseConnection::$prefixes protected property The prefixes used by this database connection.
DatabaseConnection::$prefixReplace protected property List of replacement values for use in prefixTables().
DatabaseConnection::$prefixSearch protected property List of search values for use in prefixTables().
DatabaseConnection::$schema protected property The schema object for this connection.
DatabaseConnection::$statementClass protected property The name of the Statement class for this connection.
DatabaseConnection::$target protected property The database target this connection is for.
DatabaseConnection::$temporaryNameIndex protected property An index used to generate unique temporary table names.
DatabaseConnection::$transactionalDDLSupport protected property Whether this database connection supports transactional DDL.
DatabaseConnection::$transactionLayers protected property Tracks the number of "layers" of transactions currently active.
DatabaseConnection::$transactionSupport protected property Whether this database connection supports transactions.
DatabaseConnection::$unprefixedTablesMap protected property List of un-prefixed table names, keyed by prefixed table names.
DatabaseConnection::commit public function Throws an exception to deny direct access to transaction commits.
DatabaseConnection::defaultOptions protected function Returns the default query options for any given query.
DatabaseConnection::delete public function Prepares and returns a DELETE query object.
DatabaseConnection::destroy public function Destroys this Connection object.
DatabaseConnection::escapeAlias public function Escapes an alias name string. 1
DatabaseConnection::escapeField public function Escapes a field name string. 1
DatabaseConnection::escapeLike public function Escapes characters that work as wildcard characters in a LIKE pattern.
DatabaseConnection::escapeTable public function Escapes a table name string.
DatabaseConnection::expandArguments protected function Expands out shorthand placeholders.
DatabaseConnection::filterComment protected function Sanitize a query comment string.
DatabaseConnection::generateTemporaryTableName protected function Generates a temporary table name.
DatabaseConnection::getConnectionOptions public function Returns the connection information for this connection object.
DatabaseConnection::getDriverClass public function Gets the driver-specific override class if any for the specified class.
DatabaseConnection::getKey public function Returns the key this connection is associated with.
DatabaseConnection::getLogger public function Gets the current logging object for this connection.
DatabaseConnection::getTarget public function Returns the target this connection is associated with.
DatabaseConnection::getUnprefixedTablesMap public function Gets a list of individually prefixed table names.
DatabaseConnection::insert public function Prepares and returns an INSERT query object.
DatabaseConnection::inTransaction public function Determines if there is an active transaction open.
DatabaseConnection::makeComment public function Flatten an array of query comments into a single comment string.
DatabaseConnection::makeSequenceName public function Creates the appropriate sequence name for a given table and serial field.
DatabaseConnection::merge public function Prepares and returns a MERGE query object.
DatabaseConnection::popCommittableTransactions protected function Internal function: commit all the transaction layers that can commit. 1
DatabaseConnection::popTransaction public function Decreases the depth of transaction nesting. 1
DatabaseConnection::prefixTables public function Appends a database prefix to all tables in a query.
DatabaseConnection::prepareQuery public function Prepares a query string and returns the prepared statement. 2
DatabaseConnection::pushTransaction public function Increases the depth of transaction nesting. 1
DatabaseConnection::query public function Executes a query string against the database. 1
DatabaseConnection::rollback public function Rolls back the transaction entirely or to a named savepoint. 2
DatabaseConnection::schema public function Returns a DatabaseSchema object for manipulating the schema.
DatabaseConnection::select public function Prepares and returns a SELECT query object.
DatabaseConnection::setKey public function Tells this connection object what its key is.
DatabaseConnection::setLogger public function Associates a logging object with this connection.
DatabaseConnection::setPrefix protected function Set the list of prefixes used by this database connection. 1
DatabaseConnection::setTarget public function Tells this connection object what its target value is.
DatabaseConnection::startTransaction public function Returns a new DatabaseTransaction object on this connection.
DatabaseConnection::supportsTransactionalDDL public function Determines if this driver supports transactional DDL.
DatabaseConnection::supportsTransactions public function Determines if this driver supports transactions.
DatabaseConnection::tablePrefix public function Find the prefix for a table.
DatabaseConnection::transactionDepth public function Determines current transaction depth.
DatabaseConnection::truncate public function Prepares and returns a TRUNCATE query object.
DatabaseConnection::update public function Prepares and returns an UPDATE query object.
DatabaseConnection::utf8mb4IsActive public function Checks whether utf8mb4 support is currently active. 3
DatabaseConnection::utf8mb4IsConfigurable public function Checks whether utf8mb4 support is configurable in settings.php. 1
DatabaseConnection::utf8mb4IsSupported public function Checks whether utf8mb4 support is available on the current database system. 3
DatabaseConnection::version public function Returns the version of the database server.
DatabaseConnection::__call public function Proxy possible direct calls to the \PDO methods.
SchemaTestDatabaseConnection::databaseType public function Returns the name of the PDO driver for this connection. Overrides DatabaseConnection::databaseType
SchemaTestDatabaseConnection::driver public function Returns the type of database driver. Overrides DatabaseConnection::driver
SchemaTestDatabaseConnection::mapConditionOperator public function Gets any special processing requirements for the condition operator. Overrides DatabaseConnection::mapConditionOperator
SchemaTestDatabaseConnection::nextId public function Retrieves an unique id from a given sequence. Overrides DatabaseConnection::nextId
SchemaTestDatabaseConnection::queryRange public function Runs a limited-range query on this database object. Overrides DatabaseConnection::queryRange
SchemaTestDatabaseConnection::queryTemporary function Runs a SELECT query and stores its results in a temporary table. Overrides DatabaseConnection::queryTemporary
SchemaTestDatabaseConnection::__construct function Overrides DatabaseConnection::__construct