aboutsummaryrefslogtreecommitdiff
path: root/includes/vendor/aura/sql/src/ConnectionLocatorInterface.php
diff options
context:
space:
mode:
authors1n <[email protected]>2020-03-28 10:36:41 -0700
committers1n <[email protected]>2020-03-28 10:36:41 -0700
commit25b7d2aab61ae6421398d3abae5da6ffe590333d (patch)
tree611985ec78bb2d94099c9fd5dd687f5c9cee6f3e /includes/vendor/aura/sql/src/ConnectionLocatorInterface.php
parentInitial commit (diff)
downloadcrack.cf-backup-25b7d2aab61ae6421398d3abae5da6ffe590333d.tar.xz
crack.cf-backup-25b7d2aab61ae6421398d3abae5da6ffe590333d.zip
3/28/2020, 10:36HEADmaster
Diffstat (limited to 'includes/vendor/aura/sql/src/ConnectionLocatorInterface.php')
-rw-r--r--includes/vendor/aura/sql/src/ConnectionLocatorInterface.php91
1 files changed, 91 insertions, 0 deletions
diff --git a/includes/vendor/aura/sql/src/ConnectionLocatorInterface.php b/includes/vendor/aura/sql/src/ConnectionLocatorInterface.php
new file mode 100644
index 0000000..558a953
--- /dev/null
+++ b/includes/vendor/aura/sql/src/ConnectionLocatorInterface.php
@@ -0,0 +1,91 @@
+<?php
+/**
+ *
+ * This file is part of Aura for PHP.
+ *
+ * @license http://opensource.org/licenses/bsd-license.php BSD
+ *
+ */
+namespace Aura\Sql;
+
+/**
+ *
+ * Locates PDO connections for default, read, and write databases.
+ *
+ * @package Aura.Sql
+ *
+ */
+interface ConnectionLocatorInterface
+{
+ /**
+ *
+ * Sets the default connection registry entry.
+ *
+ * @param callable $callable The registry entry.
+ *
+ * @return null
+ *
+ */
+ public function setDefault($callable);
+
+ /**
+ *
+ * Returns the default connection object.
+ *
+ * @return ExtendedPdoInterface
+ *
+ */
+ public function getDefault();
+
+ /**
+ *
+ * Sets a read connection registry entry by name.
+ *
+ * @param string $name The name of the registry entry.
+ *
+ * @param callable $callable The registry entry.
+ *
+ * @return null
+ *
+ */
+ public function setRead($name, $callable);
+
+ /**
+ *
+ * Returns a read connection by name; if no name is given, picks a
+ * random connection; if no read connections are present, returns the
+ * default connection.
+ *
+ * @param string $name The read connection name to return.
+ *
+ * @return ExtendedPdoInterface
+ *
+ */
+ public function getRead($name = null);
+
+ /**
+ *
+ * Sets a write connection registry entry by name.
+ *
+ * @param string $name The name of the registry entry.
+ *
+ * @param callable $callable The registry entry.
+ *
+ * @return null
+ *
+ */
+ public function setWrite($name, $callable);
+
+ /**
+ *
+ * Returns a write connection by name; if no name is given, picks a
+ * random connection; if no write connections are present, returns the
+ * default connection.
+ *
+ * @param string $name The write connection name to return.
+ *
+ * @return ExtendedPdoInterface
+ *
+ */
+ public function getWrite($name = null);
+}