You are here

public function Connection::getFullQualifiedTableName in Drupal 10

Same name in this branch
  1. 10 core/modules/sqlite/src/Driver/Database/sqlite/Connection.php \Drupal\sqlite\Driver\Database\sqlite\Connection::getFullQualifiedTableName()
  2. 10 core/modules/pgsql/src/Driver/Database/pgsql/Connection.php \Drupal\pgsql\Driver\Database\pgsql\Connection::getFullQualifiedTableName()

File

core/modules/pgsql/src/Driver/Database/pgsql/Connection.php, line 300

Class

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

Namespace

Drupal\pgsql\Driver\Database\pgsql

Code

public function getFullQualifiedTableName($table) {
  $options = $this
    ->getConnectionOptions();
  $prefix = $this
    ->tablePrefix($table);

  // The fully qualified table name in PostgreSQL is in the form of
  // <database>.<schema>.<table>, so we have to include the 'public' schema in
  // the return value.
  return $options['database'] . '.public.' . $prefix . $table;
}