crate-pdo icon indicating copy to clipboard operation
crate-pdo copied to clipboard

Document use with Laravel

Open amotl opened this issue 10 months ago • 0 comments

i am using laravel 11.42.1 (latest version) and i am able to connect to crate and get data like this:

$connection = app(CrateDB::class)->createConnection();
$stmt       = $connection->query('SELECT id FROM something LIMIT 3');
$rows       = $stmt->doFetchAll(PDO::FETCH_ASSOC);

and everything is working fine 🤷 😏

Originally posted by @michabbb in #160

amotl avatar Feb 17 '25 21:02 amotl