Versions in this module Expand all Collapse all v0 v0.2.7 Nov 28, 2026 v0.2.6 Nov 27, 2026 Changes in this version + func CompileForEngine(engine string, q queryir.Query) (queryir.Compiled, error) + func CompilePostgres(q queryir.Query) (queryir.Compiled, error) + func CompilePostgresWarehouse(q queryir.Query) (queryir.Compiled, error) + type DemoAI struct + func (DemoAI) Ask(_ context.Context, _ string, databaseID string) (core.ChatResponse, error) + type DemoExecutor struct + func (DemoExecutor) Execute(_ context.Context, databaseID, sql string, _ ...any) (core.QueryResult, error) + type EngineDefinition struct + Compatible []string + DSNExample string + DefaultPort int + DefaultUsername string + Family string + ID string + Label string + Network bool + SSH bool + Username bool + func EngineDefinitions() []EngineDefinition + type FileCatalog struct + func NewFileCatalog(path string) *FileCatalog + func (c *FileCatalog) Delete(id string) error + func (c *FileCatalog) List() ([]core.Database, error) + func (c *FileCatalog) Save(database core.Database) error + type FileConnectionSecretStore struct + func NewFileConnectionSecretStore(path string) *FileConnectionSecretStore + func (s *FileConnectionSecretStore) DeleteConnectionSecret(id string) error + func (s *FileConnectionSecretStore) GetConnectionSecret(id string) (core.ConnectionRequest, error) + func (s *FileConnectionSecretStore) ListConnectionSecrets() (map[string]core.ConnectionRequest, error) + func (s *FileConnectionSecretStore) SaveConnectionSecret(id string, value core.ConnectionRequest) error + type FileMetadataStore struct + func NewFileMetadataStore(path string) *FileMetadataStore + func (s *FileMetadataStore) All() (map[string]core.TableAnnotation, error) + func (s *FileMetadataStore) GetTableAnnotation(databaseID, schema, table string) (core.TableAnnotation, error) + func (s *FileMetadataStore) SaveTableAnnotation(databaseID, schema, table string, value core.TableAnnotation) error + type SQLConnector struct + func NewPostgresConnector() *SQLConnector + func NewSQLConnector() *SQLConnector + func (p *SQLConnector) Close(id string) error + func (p *SQLConnector) CloseAll() error + func (p *SQLConnector) Compile(q queryir.Query) (queryir.Compiled, error) + func (p *SQLConnector) CompileWarehouse(q queryir.Query) (queryir.Compiled, error) + func (p *SQLConnector) Connect(ctx context.Context, input core.ConnectionRequest) (core.Database, error) + func (p *SQLConnector) Connected(id string) bool + func (p *SQLConnector) Engine(databaseID string) (string, error) + func (p *SQLConnector) Execute(ctx context.Context, databaseID, statement string, args ...any) (core.QueryResult, error) + func (p *SQLConnector) Materialize(ctx context.Context, spec core.MaterializeSpec) (core.MaterializeResult, error) + func (p *SQLConnector) Tables(ctx context.Context, databaseID string) ([]core.Table, error)