gingdev / turso-hrana-dbal
Doctrine DBAL Driver for Turso HTTP API
1.0.0
2024-10-24 05:15 UTC
Requires
- gingdev/turso-hrana-php: ^1.0
Requires (Dev)
- doctrine/dbal: ^4.2
- phpstan/phpstan: ^1.12
README
<?php use Doctrine\DBAL\DriverManager; use Gingdev\TursoHranaDBAL\Driver; require __DIR__. '/vendor/autoload.php'; $connectionParams = [ 'password' => $authToken, 'host' => $yourAppUrl, 'driverClass' => Driver::class, ]; $conn = DriverManager::getConnection($connectionParams); $result = $conn->executeQuery('SELECT * FROM users'); print_r($result->fetchAllNumeric());