You are here

SchemaTestDatabaseConnection.php in Schema 8

Same filename and directory in other branches
  1. 7 tests/schema_test/SchemaTestDatabaseConnection.php

Defines SchemaTestDatabaseConnection.

File

tests/schema_test/SchemaTestDatabaseConnection.php
View source
<?php

/**
 * @file
 * Defines SchemaTestDatabaseConnection.
 */
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;
  }

}

Classes

Namesort descending Description
SchemaTestDatabaseConnection @file Defines SchemaTestDatabaseConnection.