Documentation
¶
Index ¶
Constants ¶
View Source
const ( Postgres types.DataSourceType = "postgres" DuckDB types.DataSourceType = "duckdb" MySQL types.DataSourceType = "mysql" Http types.DataSourceType = "http" Runtime types.DataSourceType = "runtime" Extension types.DataSourceType = "extension" )
Variables ¶
View Source
var ( ErrDataSourceNotFound = errors.New("data source not found") ErrDataSourceExists = errors.New("data source already exists") ErrDataSourceAttached = errors.New("data source is attached") ErrDataSourceNotAttached = errors.New("data source is not attached") ErrUnknownDataSourceType = errors.New("unknown data source type") ErrDataSourceAttachedWithDifferentType = errors.New("data source already attached with different type exists") ErrEmptyQuery = errors.New("empty query") ErrQueryParsingFailed = errors.New("query parsing failed") ErrInvalidDataSourcePath = errors.New("invalid data source path") )
Functions ¶
func ApplyEnvVars ¶ added in v0.1.9
func CheckDBExists ¶
Types ¶
type ExtensionSource ¶ added in v0.1.12
type ExtensionSource interface {
IsExtension() bool
}
The data source is a catalog extension.
type ParsedDSN ¶
type RuntimeSource ¶
type RuntimeSource interface { Name() string Engine() engines.Engine IsReadonly() bool AsModule() bool Attach(ctx context.Context, db *db.Pool) error Catalog(ctx context.Context) sources.Source }
RuntimeSource is a data source that is attached on start and provides a catalog source.
type RuntimeSourceQuerier ¶
type SelfDescriber ¶
Click to show internal directories.
Click to hide internal directories.