feat: add Turso/libSQL database support
Turso is a distributed SQLite database built on libSQL, offering HTTP-based connectivity with auth token authentication. This change adds full support: - New DatabaseType::Turso and PoolKind::Turso variants - TursoClient driver using libSQL HTTP pipeline API (/v2/pipeline) - Bearer token auth via password or url_params (auth_token=) - Multi-statement batch pipeline for transactional integrity - Standalone BEGIN/COMMIT/ROLLBACK treated as no-ops (pipeline is auto-commit) - Full metadata support: tables, columns, indexes, foreign keys, triggers, DDL - Frontend: connection form, SQL completion (SQLite syntax), capability sets - Built-in databases (SQLite/Turso/DuckDB/RQLite/Access) placed first in selector - Unit tests (15) + integration tests against live libsql-server (12) - Single connection pool, skips TCP probe Closes #948
This commit is contained in:
1 parent
d5bc3d065a
commit
d08385e75f
24 files changed
+1109
-17
No files matched your search
@@ -41,6 +41,7 @@ export const DIAGRAM_SUPPORTED_TYPES = new Set<DatabaseType>([
|
||||
"postgres",
|
||||
"sqlite",
|
||||
"rqlite",
|
||||
"turso",
|
||||
"sqlserver",
|
||||
"oracle",
|
||||
"redshift",
|
||||
@@ -72,6 +73,7 @@ export const DATABASE_SEARCH_SUPPORTED_TYPES = new Set<DatabaseType>([
|
||||
"postgres",
|
||||
"sqlite",
|
||||
"rqlite",
|
||||
"turso",
|
||||
"sqlserver",
|
||||
"oracle",
|
||||
"redshift",
|
||||
@@ -118,6 +120,7 @@ export const TABLE_IMPORT_SUPPORTED_TYPES = new Set<DatabaseType>([
|
||||
"postgres",
|
||||
"sqlite",
|
||||
"rqlite",
|
||||
"turso",
|
||||
"duckdb",
|
||||
"clickhouse",
|
||||
"sqlserver",
|
||||
@@ -141,6 +144,7 @@ export const TABLE_STRUCTURE_SUPPORTED_TYPES = new Set<DatabaseType>([
|
||||
"postgres",
|
||||
"sqlite",
|
||||
"rqlite",
|
||||
"turso",
|
||||
"duckdb",
|
||||
"clickhouse",
|
||||
"sqlserver",
|
||||
@@ -183,6 +187,7 @@ export const FIELD_LINEAGE_SUPPORTED_TYPES = new Set<DatabaseType>([
|
||||
"postgres",
|
||||
"sqlite",
|
||||
"rqlite",
|
||||
"turso",
|
||||
"sqlserver",
|
||||
"oracle",
|
||||
"redshift",
|
||||
@@ -279,6 +284,7 @@ export const TRANSFER_SQL_TYPES = new Set<DatabaseType>([
|
||||
"postgres",
|
||||
"sqlite",
|
||||
"rqlite",
|
||||
"turso",
|
||||
"sqlserver",
|
||||
"oracle",
|
||||
"clickhouse",
|
||||
@@ -297,6 +303,7 @@ export const DIAGRAM_SQL_TYPES = new Set<DatabaseType>([
|
||||
"postgres",
|
||||
"sqlite",
|
||||
"rqlite",
|
||||
"turso",
|
||||
"sqlserver",
|
||||
"oracle",
|
||||
"redshift",
|
||||
|
||||
Reference in new issue
Block a user