W3cubDocs

/Drupal 8

protected property Connection::$key

The key representing this connection.

The key is a unique string which identifies a database connection. A connection can be a single server or a cluster of primary and replicas (use target to pick between primary and replica).

Type: string|null

File

core/lib/Drupal/Core/Database/Connection.php, line 35

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

protected $key = NULL;

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!Connection.php/property/Connection::key/8.1.x