DBD-libsql
view release on metacpan or search on metacpan
xt/03_turso_live.t view on Meta::CPAN
$hostname = $1;
} else {
plan skip_all =>
"Invalid TURSO_DATABASE_URL format: '$turso_url'\n" .
"Expected format: libsql://database-name-author.region.turso.io\n" .
"Get the correct URL from your Turso dashboard at https://app.turso.io\n";
}
plan tests => 8;
# Test 1: Connection with Turso credentials (using DBI standard password parameter)
my $dsn = "dbi:libsql:$hostname";
my $dbh = DBI->connect($dsn, '', $turso_token, {
RaiseError => 1,
AutoCommit => 1,
});
ok($dbh, 'Successfully connected to Turso database');
isa_ok($dbh, 'DBI::db', 'Database handle');
# Test 2: Create test table
( run in 0.232 second using v1.01-cache-2.11-cpan-0ffa90cfd1c )