connectors/connectors library

TTQL Connectors & Environment Context Subsystem.

Classes

CliConnectionDescriptor
Immutable descriptor for connection metadata registered in CliConnectionProvider.
CliConnectionProvider
Dynamic connection provider for headless CLI execution and standalone automation pipelines. Supports parsing local JSON config files, expanding environment variables (${VAR_NAME}), executing native read-only queries against local SQLite files and ClickHouse HTTP endpoints, or delegating to an injected liveQueryExecutor.
TtqlConnectionDescriptor
Abstract connection descriptor injected into the TTQL script environment. Exposes safe metadata and table schemas, strictly excluding credentials or passwords.
TtqlConnectionProvider
Abstract contract for executing queries on database connections within the pool. Decouples the TTQL parsing and execution engine from desktop UI adapters and credential vaults.
TtqlEnvironmentBuilder
Builds a strictly airgapped TtqlEnvironmentContext exposing only connection IDs and table schema metadata, guaranteeing that plaintext credentials never leak into scripts.
TtqlEnvironmentContext
Environment context holding available database connection references for a TTQL script.

Typedefs

CliLiveQueryExecutor = Future<List<Map<String, dynamic>>> Function(CliConnectionDescriptor descriptor, String query, int maxRows)
Optional live query executor delegate for custom transport drivers in CLI mode.