[ Index ] |
PHP Cross Reference of YOURLS |
[Source view] [Print] [Project Stats]
This file is part of Aura for PHP.
License: | https://opensource.org/licenses/MIT MIT |
File Size: | 88 lines (2 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
ConnectionLocatorInterface:: (6 methods):
setDefault()
getDefault()
setRead()
getRead()
setWrite()
getWrite()
Interface: ConnectionLocatorInterface - X-Ref
Locates PDO connections for default, read, and write databases.setDefault(callable $callable) X-Ref |
Sets the default connection registry entry. return: void param: callable $callable The registry entry. |
getDefault() X-Ref |
Returns the default connection object. return: ExtendedPdoInterface |
setRead(string $name, callable $callable) X-Ref |
Sets a read connection registry entry by name. return: void param: string $name The name of the registry entry. param: callable $callable The registry entry. |
getRead(string $name = '') X-Ref |
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. return: ExtendedPdoInterface param: string $name The read connection name to return. |
setWrite(string $name, callable $callable) X-Ref |
Sets a write connection registry entry by name. return: void param: string $name The name of the registry entry. param: callable $callable The registry entry. |
getWrite(string $name = '') X-Ref |
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. return: ExtendedPdoInterface param: string $name The write connection name to return. |
Generated: Tue Apr 1 05:10:01 2025 | Cross-referenced by PHPXref 0.7.1 |