Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Schema.php

function Schema::__construct

Same name in this branch
  1. 11.1.x core/lib/Drupal/Core/Database/Schema.php \Drupal\Core\Database\Schema::__construct()

Overrides Schema::__construct

File

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

Class

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

Namespace

Drupal\pgsql\Driver\Database\pgsql

Code

public function __construct($connection) {
    parent::__construct($connection);
    // If the schema is not set in the connection options then schema defaults
    // to public.
    $this->defaultSchema = $connection->getConnectionOptions()['schema'] ?? 'public';
}
RSS feed
Powered by Drupal