Download the PHP package byjg/anydataset-db without Composer
On this page you can find all versions of the php package byjg/anydataset-db. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download byjg/anydataset-db
More information about byjg/anydataset-db
Files in byjg/anydataset-db
Download byjg/anydataset-db
More information about byjg/anydataset-db
Files in byjg/anydataset-db
Vendor byjg
Package anydataset-db
Short Description Anydataset Database Relational abstraction. Anydataset is an agnostic data source abstraction layer in PHP.
License MIT
Package anydataset-db
Short Description Anydataset Database Relational abstraction. Anydataset is an agnostic data source abstraction layer in PHP.
License MIT
Please rate this library. Is it a good library?
Informations about the package anydataset-db
AnyDataset-DB
Anydataset Database Relational abstraction. Anydataset is an agnostic data source abstraction layer in PHP.
See more about Anydataset here.
Features
- Connection based on URI
- Support and fix code tricks with several databases (MySQL, PostgresSql, MS SQL Server, etc)
- Natively supports Query Cache by implementing a PSR-6 interface
- Supports Connection Routes based on regular expression against the queries, that's mean a select in a table should be executed in a database and in another table should be executed in another (even if in different DB)
Connection Based on URI
The connection string for databases is based on URL.
See below the current implemented drivers:
Database | Connection String | Factory |
---|---|---|
Sqlite | sqlite:///path/to/file | getDbRelationalInstance() |
MySql/MariaDb | mysql://username:password@hostname:port/database | getDbRelationalInstance() |
Postgres | psql://username:password@hostname:port/database | getDbRelationalInstance() |
Sql Server (DbLib) | dblib://username:password@hostname:port/database | getDbRelationalInstance() |
Sql Server (Sqlsrv) | sqlsrv://username:password@hostname:port/database | getDbRelationalInstance() |
Oracle (OCI8) | oci8://username:password@hostname:port/database | getDbRelationalInstance() |
Generic PDO | pdo://username:password@pdo_driver?PDO_PARAMETERS | getDbRelationalInstance() |
Examples
- Getting Started
- Basic Query and Update
- Cache results
- Database Transaction
- Load Balance and Connection Pooling
- Database Helper
Advanced Topics
- Passing Parameters to PDODriver
- Generic PDO Driver
- Running Tests
Database Specifics
- MySQL
- Oracle
- SQLServer
Install
Just type:
Dependencies
All versions of anydataset-db with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1 <8.4
ext-pdo Version *
psr/cache Version ^1.0|^2.0|^3.0
psr/log Version ^1.1|^2.0|^3.0
byjg/uri Version ^5.0
byjg/anydataset-array Version ^5.0
ext-json Version *
ext-pdo Version *
psr/cache Version ^1.0|^2.0|^3.0
psr/log Version ^1.1|^2.0|^3.0
byjg/uri Version ^5.0
byjg/anydataset-array Version ^5.0
ext-json Version *
The package byjg/anydataset-db contains the following files
Loading the files please wait ....