michabbb / php-crate
A PHP Helper Class working with the crate db
Installs: 1 778
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: >=5.3
- guzzle/guzzle: dev-master
- michabbb/toper: dev-master
- phpunit/phpunit: 4.1.*@dev
This package is auto-updated.
Last update: 2024-10-22 18:02:37 UTC
README
A PHP helper class for working with the crate db
using a round robin connection pool based on a modified version of allegro/toper
Notice
i use a modified version of allegro/toper where the original guzzle response object gets returned
Quick start
$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
vendor/bin/phpunit --bootstrap ./tests/bootstrap.php --colors tests/SelectTest.php --verbose --debug