public function Connection::schema in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::schema()
Returns a DatabaseSchema object for manipulating the schema.
This method will lazy-load the appropriate schema library file.
Return value
\Drupal\Core\Database\Schema The database Schema object for this connection.
File
- core/
lib/ Drupal/ Core/ Database/ Connection.php, line 1319
Class
- Connection
- Base Database API class.
Namespace
Drupal\Core\DatabaseCode
public function schema() {
if (empty($this->schema)) {
$class = $this
->getDriverClass('Schema');
$this->schema = new $class($this);
}
return $this->schema;
}