From 610b1a41ddd07245e685db80617cb21a468976e1 Mon Sep 17 00:00:00 2001 From: Joao M Date: Mon, 15 Jan 2024 19:33:42 -0600 Subject: [PATCH] Update README.md --- README.md | 115 ++++++++++++++++++++++++++++++++---------------------- 1 file changed, 68 insertions(+), 47 deletions(-) diff --git a/README.md b/README.md index c81f3bf..11ce326 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,26 @@ -# AnyDataset-DB +# AnyDataset-NoSql -[![Build Status](https://github.com/byjg/php-anydataset-db/actions/workflows/phpunit.yml/badge.svg?branch=master)](https://github.com/byjg/php-anydataset-db/actions/workflows/phpunit.yml) +[![Build Status](https://github.com/byjg/php-anydataset-nosql/actions/workflows/phpunit.yml/badge.svg?branch=master)](https://github.com/byjg/php-anydataset-nosql/actions/workflows/phpunit.yml) [![Opensource ByJG](https://img.shields.io/badge/opensource-byjg-success.svg)](http://opensource.byjg.com) -[![GitHub source](https://img.shields.io/badge/Github-source-informational?logo=github)](https://github.com/byjg/php-anydataset-db/) -[![GitHub license](https://img.shields.io/github/license/byjg/php-anydataset-db.svg)](https://opensource.byjg.com/opensource/licensing.html) -[![GitHub release](https://img.shields.io/github/release/byjg/php-anydataset-db.svg)](https://github.com/byjg/php-anydataset-db/releases/) +[![GitHub source](https://img.shields.io/badge/Github-source-informational?logo=github)](https://github.com/byjg/php-anydataset-nosql/) +[![GitHub license](https://img.shields.io/github/license/byjg/php-anydataset-nosql.svg)](https://opensource.byjg.com/opensource/licensing.html) +[![GitHub release](https://img.shields.io/github/release/byjg/php-anydataset-nosql.svg)](https://github.com/byjg/php-anydataset-nosql/releases/) -Anydataset Database Relational abstraction. Anydataset is an agnostic data source abstraction layer in PHP. +Anydataset NoSQL standardize the access to non-relational databases/repositories and treat them as Key/Value. +The implementation can work with: -See more about Anydataset [here](https://opensource.byjg.com/anydataset). +- MongoDB +- Cloudflare KV +- S3 +- DynamoDB + +Anydataset is an agnostic data source abstraction layer in PHP. See more about Anydataset [here](https://opensource.byjg.com/php/anydataset). ## 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) +- Access as Key/Value repositories different datasource +- Allow put and get data +- Simplified way to connect to the datasources ## Connection Based on URI @@ -24,56 +28,73 @@ 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 (OCI) | oci://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() | - -```php - byjg/anydataset-array - byjg/anydataset-db --> ext-pdo - byjg/anydataset-db --> byjg/uri - byjg/anydataset-db --> psr/cache - byjg/anydataset-db --> psr/log + byjg/anydataset-nosql --> ext-curl + byjg/anydataset-nosql --> aws/aws-sdk-php + byjg/anydataset-nosql --> byjg/anydataset + byjg/anydataset-nosql --> byjg/anydataset-array + byjg/anydataset-nosql --> byjg/serializer + byjg/anydataset-nosql --> byjg/webrequest + byjg/anydataset-nosql --> ext-json ``` ----