We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eb0311 commit d984a05Copy full SHA for d984a05
src/Storage/PDOConnector.php
@@ -41,6 +41,8 @@ class PDOConnector implements IStorageConnector {
41
private $statement = null;
42
/** @var bool $transactionExists */
43
private $transactionExists = false;
44
+ /** @var string|null $schemaName */
45
+ private $schemaName = null;
46
47
/**
48
* sets the credentials used to connect against the database
@@ -49,6 +51,14 @@ class PDOConnector implements IStorageConnector {
49
51
*/
50
52
public function setCredentials(array $credentials) {
53
$this->credentials = $credentials;
54
+ $this->schemaName = $credentials["dbname"];
55
+ }
56
+
57
+ /**
58
+ * @return string|null
59
+ */
60
+ public function getSchema(): ?string {
61
+ return $this->schemaName;
62
}
63
64
0 commit comments