gingdev/turso-hrana-dbal

Doctrine DBAL Driver for Turso HTTP API

1.0.0 2024-10-24 05:15 UTC

This package is auto-updated.

Last update: 2024-10-24 05:15:59 UTC


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());