Download the PHP package codememory/database-connection without Composer
On this page you can find all versions of the php package codememory/database-connection. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package database-connection
Database Connection
Установка
Поддерживаются драйвера
- [x] MySQL
- [x] PostgreSQL
- [x] SQLite
Методы класса Connection
getConnector(): ConnectorInterfaceПолучить коннектор- string $connectorName
getConnectors(): ConnectorInterface[]Получить массив всех коннекторовreconnect(): ConnectorInterface|ConnectionInterfaceПереопределить данные коннектора- string $connectorName
- callable $callback
- string|null $newConnectorName
connectorExist(): boolПроверить существование коннектора- string $connectorName
Методы класса Connector
isConnection(): boolПроверить подключение к базе данныхgetConnection(): PDOПолучить PDO объект, если подключение успешноеgetConnectorData(): ConnectorConfigurationInterfaceПолучить данные подключенного юзераgetConnectorName(): stringПолучить имя текущего коннектора
Пример создания коннектора
Пример переопределения данных коннектора
All versions of database-connection with dependencies
PHP Build Version
Package Version
Requires
ext-pdo Version
*
The package codememory/database-connection contains the following files
Loading the files please wait ...