function Connection::schema
Returns a DatabaseSchema object for manipulating the schema.
This method will lazy-load the appropriate schema library file.
@todo in drupal:11.0.0, make this method abstract since Schema is an abstract class.
Return value
\Drupal\Core\Database\Schema The database Schema object for this connection.
Overrides Connection::schema
File
-
core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ Connection.php, line 515
Class
- Connection
- PostgreSQL implementation of \Drupal\Core\Database\Connection.
Namespace
Drupal\pgsql\Driver\Database\pgsqlCode
public function schema() {
if (empty($this->schema)) {
$this->schema = new Schema($this);
}
return $this->schema;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.