You are here

protected function Schema::getTempNamespaceName in Drupal 10

Gets PostgreSQL's temporary namespace name.

Return value

string PostgreSQL's temporary namespace name.

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

File

core/modules/pgsql/src/Driver/Database/pgsql/Schema.php, line 195

Class

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

Namespace

Drupal\pgsql\Driver\Database\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;
}