tina4stack / tina4php-pdo
Tina4 PHP PDO Database Driver
v2.0.0
2023-01-25 10:36 UTC
Requires
- ext-json: *
- ext-pdo: *
- tina4stack/tina4php-database: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.2
- overtrue/phplint: ^2.0
- phpunit/phpunit: ^9
- roave/security-advisories: dev-latest
- tina4stack/tina4php-debug: ^2.0
README
#PDO ##Installing
composer install tina4stack/tina4php-pdo
for development version as we test
composer install tina4stack/tina4php-pdo:dev-main
Example of using the PDO driver
global $DBA;
$DBA = new \Tina4\DataPDO("sqlite:test.db");
global $DBA;
$DBA = \Tina4\DataPDO("dblib:host=".$_ENV["DB_HOST"].":".$_ENV["DB_PORT"].";dbname=".$_ENV["DB_NAME"],$_ENV["DB_USER"],$_ENV["DB_PASSWORD"]);