You are here

protected function Schema::getTempNamespaceName in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php \Drupal\Core\Database\Driver\pgsql\Schema::getTempNamespaceName()

Gets PostgreSQL's temporary namespace name.

Return value

string PostgreSQL's temporary namespace name.

1 call to Schema::getTempNamespaceName()
Schema::queryTableInformation in core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
Fetch the list of blobs and sequences used on a table.

File

core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 186

Class

Schema
PostgreSQL implementation of \Drupal\Core\Database\Schema.

Namespace

Drupal\Core\Database\Driver\pgsql

Code

protected function getTempNamespaceName() {
  if (!isset($this->tempNamespaceName)) {
    $this->tempNamespaceName = $this->connection
      ->query('SELECT nspname FROM pg_namespace WHERE oid = pg_my_temp_schema()')
      ->fetchField();
  }
  return $this->tempNamespaceName;
}