class SchemaTestDatabaseConnection in Schema 7
Same name and namespace in other branches
- 8 tests/schema_test/SchemaTestDatabaseConnection.php \SchemaTestDatabaseConnection
@file Defines SchemaTestDatabaseConnection.
Hierarchy
- class \DatabaseConnection
- class \SchemaTestDatabaseConnection
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DatabaseConnection:: |
protected | property | The actual PDO connection. | |
DatabaseConnection:: |
protected | property | The connection information for this connection object. | |
DatabaseConnection:: |
protected | property | Index of what driver-specific class to use for various operations. | |
DatabaseConnection:: |
protected | property | List of escaped aliases names, keyed by unescaped aliases. | |
DatabaseConnection:: |
protected | property | List of escaped database, table, and field names, keyed by unescaped names. | |
DatabaseConnection:: |
protected | property | The key representing this connection. | |
DatabaseConnection:: |
protected | property | The current database logging object for this connection. | |
DatabaseConnection:: |
protected | property | The prefixes used by this database connection. | |
DatabaseConnection:: |
protected | property | List of replacement values for use in prefixTables(). | |
DatabaseConnection:: |
protected | property | List of search values for use in prefixTables(). | |
DatabaseConnection:: |
protected | property | The schema object for this connection. | |
DatabaseConnection:: |
protected | property | The name of the Statement class for this connection. | |
DatabaseConnection:: |
protected | property | The database target this connection is for. | |
DatabaseConnection:: |
protected | property | An index used to generate unique temporary table names. | |
DatabaseConnection:: |
protected | property | Whether this database connection supports transactional DDL. | |
DatabaseConnection:: |
protected | property | Tracks the number of "layers" of transactions currently active. | |
DatabaseConnection:: |
protected | property | Whether this database connection supports transactions. | |
DatabaseConnection:: |
protected | property | List of un-prefixed table names, keyed by prefixed table names. | |
DatabaseConnection:: |
public | function | Throws an exception to deny direct access to transaction commits. | |
DatabaseConnection:: |
protected | function | Returns the default query options for any given query. | |
DatabaseConnection:: |
public | function | Prepares and returns a DELETE query object. | |
DatabaseConnection:: |
public | function | Destroys this Connection object. | |
DatabaseConnection:: |
public | function | Escapes an alias name string. | 1 |
DatabaseConnection:: |
public | function | Escapes a field name string. | 1 |
DatabaseConnection:: |
public | function | Escapes characters that work as wildcard characters in a LIKE pattern. | |
DatabaseConnection:: |
public | function | Escapes a table name string. | |
DatabaseConnection:: |
protected | function | Expands out shorthand placeholders. | |
DatabaseConnection:: |
protected | function | Sanitize a query comment string. | |
DatabaseConnection:: |
protected | function | Generates a temporary table name. | |
DatabaseConnection:: |
public | function | Returns the connection information for this connection object. | |
DatabaseConnection:: |
public | function | Gets the driver-specific override class if any for the specified class. | |
DatabaseConnection:: |
public | function | Returns the key this connection is associated with. | |
DatabaseConnection:: |
public | function | Gets the current logging object for this connection. | |
DatabaseConnection:: |
public | function | Returns the target this connection is associated with. | |
DatabaseConnection:: |
public | function | Gets a list of individually prefixed table names. | |
DatabaseConnection:: |
public | function | Prepares and returns an INSERT query object. | |
DatabaseConnection:: |
public | function | Determines if there is an active transaction open. | |
DatabaseConnection:: |
public | function | Flatten an array of query comments into a single comment string. | |
DatabaseConnection:: |
public | function | Creates the appropriate sequence name for a given table and serial field. | |
DatabaseConnection:: |
public | function | Prepares and returns a MERGE query object. | |
DatabaseConnection:: |
protected | function | Internal function: commit all the transaction layers that can commit. | 1 |
DatabaseConnection:: |
public | function | Decreases the depth of transaction nesting. | 1 |
DatabaseConnection:: |
public | function | Appends a database prefix to all tables in a query. | |
DatabaseConnection:: |
public | function | Prepares a query string and returns the prepared statement. | 2 |
DatabaseConnection:: |
public | function | Increases the depth of transaction nesting. | 1 |
DatabaseConnection:: |
public | function | Executes a query string against the database. | 1 |
DatabaseConnection:: |
public | function | Rolls back the transaction entirely or to a named savepoint. | 2 |
DatabaseConnection:: |
public | function | Returns a DatabaseSchema object for manipulating the schema. | |
DatabaseConnection:: |
public | function | Prepares and returns a SELECT query object. | |
DatabaseConnection:: |
public | function | Tells this connection object what its key is. | |
DatabaseConnection:: |
public | function | Associates a logging object with this connection. | |
DatabaseConnection:: |
protected | function | Set the list of prefixes used by this database connection. | 1 |
DatabaseConnection:: |
public | function | Tells this connection object what its target value is. | |
DatabaseConnection:: |
public | function | Returns a new DatabaseTransaction object on this connection. | |
DatabaseConnection:: |
public | function | Determines if this driver supports transactional DDL. | |
DatabaseConnection:: |
public | function | Determines if this driver supports transactions. | |
DatabaseConnection:: |
public | function | Find the prefix for a table. | |
DatabaseConnection:: |
public | function | Determines current transaction depth. | |
DatabaseConnection:: |
public | function | Prepares and returns a TRUNCATE query object. | |
DatabaseConnection:: |
public | function | Prepares and returns an UPDATE query object. | |
DatabaseConnection:: |
public | function | Checks whether utf8mb4 support is currently active. | 3 |
DatabaseConnection:: |
public | function | Checks whether utf8mb4 support is configurable in settings.php. | 1 |
DatabaseConnection:: |
public | function | Checks whether utf8mb4 support is available on the current database system. | 3 |
DatabaseConnection:: |
public | function | Returns the version of the database server. | |
DatabaseConnection:: |
public | function | Proxy possible direct calls to the \PDO methods. | |
SchemaTestDatabaseConnection:: |
public | function |
Returns the name of the PDO driver for this connection. Overrides DatabaseConnection:: |
|
SchemaTestDatabaseConnection:: |
public | function |
Returns the type of database driver. Overrides DatabaseConnection:: |
|
SchemaTestDatabaseConnection:: |
public | function |
Gets any special processing requirements for the condition operator. Overrides DatabaseConnection:: |
|
SchemaTestDatabaseConnection:: |
public | function |
Retrieves an unique id from a given sequence. Overrides DatabaseConnection:: |
|
SchemaTestDatabaseConnection:: |
public | function |
Runs a limited-range query on this database object. Overrides DatabaseConnection:: |
|
SchemaTestDatabaseConnection:: |
function |
Runs a SELECT query and stores its results in a temporary table. Overrides DatabaseConnection:: |
||
SchemaTestDatabaseConnection:: |
function |
Overrides DatabaseConnection:: |