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 ....