Versions in this module Expand all Collapse all v0 v0.4.0 Aug 8, 2026 Changes in this version + type DB interface + Attach func(ctx context.Context, schema string) error + Close func() error + CreateTable func(ctx context.Context, schema string, ts source.TableSchema) error + Insert func(ctx context.Context, schema, table string, cols []string, rows [][]any) error + Query func(ctx context.Context, query string, args ...any) (columns []string, rows [][]any, err error) + type Engine struct + func New(opts ...Option) (*Engine, error) + func (e *Engine) DescribeTable(ctx context.Context, schema, table string) (source.TableSchema, error) + func (e *Engine) ListTables(ctx context.Context, schema, filter string) ([]string, error) + func (e *Engine) Run(ctx context.Context, query string) (*Result, error) + func (e *Engine) RunWithParams(ctx context.Context, query string, params map[string]any) (*Result, error) + func (e *Engine) SchemaSummaries(ctx context.Context) []SchemaSummary + type OpenDBFunc func(ctx context.Context) (DB, error) + type Option func(*settings) + func WithConfig(cfg *config.Config) Option + func WithConnector(name string, conn source.Connector) Option + func WithDB(open OpenDBFunc) Option + func WithRegistry(reg *source.Registry) Option + func WithSources(sources ...config.SourceConfig) Option + type Result struct + Columns []string + Rows [][]any + Warnings []string + func (r *Result) Project(cols []string) (*Result, error) + func (r *Result) Write(w io.Writer, format string) error + type SchemaSummary struct + Dynamic bool + Schema string + TableCount int