https://github.com/michabbb/php-crate
A PHP helper class for working with the crate db
https://github.com/michabbb/php-crate
Last synced: 3 months ago
JSON representation
A PHP helper class for working with the crate db
- Host: GitHub
- URL: https://github.com/michabbb/php-crate
- Owner: michabbb
- Created: 2014-12-04T15:39:08.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-07-22T12:54:09.000Z (almost 3 years ago)
- Last Synced: 2025-02-05T09:17:08.051Z (3 months ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
php-crate
=========A PHP helper class for working with the crate db
using a round robin connection pool based on a modified version of [allegro/toper](https://github.com/allegro/toper)Notice
-----------
i use a modified version of [allegro/toper](https://github.com/allegro/toper) where the original
guzzle response object gets returnedQuick start
-----------```php
$APIURL = "/_sql?pretty";
$POOL = "http://127.0.0.1:4200,http://127.0.0.1:4201,http://127.0.0.1:4202";
$SQL = "select id from test";$CRATE = new crate($POOL,$APIURL);
$result = $CRATE->sql($SQL);
```Simple Test
-----------
```shell
vendor/bin/phpunit --bootstrap ./tests/bootstrap.php --colors tests/SelectTest.php --verbose --debug
```