public function Schema::getDefaultSchema in Drupal driver for SQL Server and SQL Azure 4.0.x
Same name and namespace in other branches
- 4.2.x src/Driver/Database/sqlsrv/Schema.php \Drupal\sqlsrv\Driver\Database\sqlsrv\Schema::getDefaultSchema()
- 3.1.x src/Driver/Database/sqlsrv/Schema.php \Drupal\sqlsrv\Driver\Database\sqlsrv\Schema::getDefaultSchema()
- 4.1.x src/Driver/Database/sqlsrv/Schema.php \Drupal\sqlsrv\Driver\Database\sqlsrv\Schema::getDefaultSchema()
Return active default Schema.
5 calls to Schema::getDefaultSchema()
- Schema::createCommentSql in src/
Driver/ Database/ sqlsrv/ Schema.php - Create the SQL statement to add a new comment.
- Schema::deleteCommentSql in src/
Driver/ Database/ sqlsrv/ Schema.php - Create an SQL statement to delete a comment.
- Schema::getCollation in src/
Driver/ Database/ sqlsrv/ Schema.php - Get the collation.
- Schema::getComment in src/
Driver/ Database/ sqlsrv/ Schema.php - Retrieve a table or column comment.
- Schema::tableExists in src/
Driver/ Database/ sqlsrv/ Schema.php - Temporary tables and regular tables cannot be verified in the same way.
File
- src/
Driver/ Database/ sqlsrv/ Schema.php, line 787
Class
Namespace
Drupal\sqlsrv\Driver\Database\sqlsrvCode
public function getDefaultSchema() {
if (!isset($this->defaultSchema)) {
$result = $this->connection
->queryDirect("SELECT SCHEMA_NAME()")
->fetchField();
$this->defaultSchema = $result;
}
return $this->defaultSchema;
}