PHP PDO key/value abstraction layer
source, phpdoc
create test database
require_once('kv.php');
$ds = new kvstore(new PDO($dsn,$user,$pass),'table-0');
$ds->dropTable();
$ds->createTable();
$ds->errorExceptions();
//$ds->errorSilent();
//$ds->errorWarning();
Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 1 near "DEFAULT": syntax error in /usr/home/mt3o/domains/rashell.pl/public_html/kv.php:81
Stack trace:
#0 /usr/home/mt3o/domains/rashell.pl/public_html/kv.php(81): PDO->exec('CREATE TABLE IF...')
#1 /usr/home/mt3o/domains/rashell.pl/public_html/kv_example.php(43): kvstore->createTable()
#2 {main}
thrown in /usr/home/mt3o/domains/rashell.pl/public_html/kv.php on line 81