duckdb

package
v0.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DuckDBScapperConf

type DuckDBScapperConf struct {
	dwhexecduckdb.DuckDBConf
}

type DuckDBScrapper

type DuckDBScrapper struct {
	// contains filtered or unexported fields
}

func NewDuckDBScrapper

func NewDuckDBScrapper(ctx context.Context, conf *DuckDBScapperConf) (*DuckDBScrapper, error)

func NewLocalDuckDBScrapper added in v0.9.0

func NewLocalDuckDBScrapper(ctx context.Context, dsn string, instanceName string) (*DuckDBScrapper, error)

NewLocalDuckDBScrapper creates a scrapper for local DuckDB (for testing). Use dsn="" for in-memory database, or a file path for persistent database.

func (*DuckDBScrapper) Capabilities added in v0.10.6

func (e *DuckDBScrapper) Capabilities() scrapper.Capabilities

func (*DuckDBScrapper) Close

func (e *DuckDBScrapper) Close() error

func (*DuckDBScrapper) DialectType added in v0.1.8

func (e *DuckDBScrapper) DialectType() string

func (*DuckDBScrapper) EstimateQuery added in v0.16.0

func (e *DuckDBScrapper) EstimateQuery(ctx context.Context, sql string) (*scrapper.QueryEstimate, error)

EstimateQuery is unsupported: DuckDB's EXPLAIN emits only planner cost and cardinality estimates, with no bytes-scanned figure. (DuckDB is embedded and local, so a pre-run scan estimate has little value anyway.)

func (*DuckDBScrapper) Executor added in v0.12.0

func (*DuckDBScrapper) IsPermissionError added in v0.1.1

func (e *DuckDBScrapper) IsPermissionError(err error) bool

func (*DuckDBScrapper) QueryCatalog

func (e *DuckDBScrapper) QueryCatalog(ctx context.Context) ([]*scrapper.CatalogColumnRow, error)

func (*DuckDBScrapper) QueryCustomMetrics

func (e *DuckDBScrapper) QueryCustomMetrics(ctx context.Context, sql string, args ...any) ([]*scrapper.CustomMetricsRow, error)

func (*DuckDBScrapper) QueryDatabases

func (e *DuckDBScrapper) QueryDatabases(ctx context.Context) ([]*scrapper.DatabaseRow, error)

func (*DuckDBScrapper) QueryPlatformUsers added in v0.21.0

func (e *DuckDBScrapper) QueryPlatformUsers(ctx context.Context) (*scrapper.PlatformUsers, error)

QueryPlatformUsers is unsupported: DuckDB is an embedded database with no authentication and no users. MotherDuck accounts are not exposed through SQL.

func (*DuckDBScrapper) QueryRoutines added in v0.23.0

func (e *DuckDBScrapper) QueryRoutines(ctx context.Context) ([]*scrapper.RoutineRow, error)

func (*DuckDBScrapper) QuerySchemas added in v0.14.5

func (e *DuckDBScrapper) QuerySchemas(ctx context.Context) ([]*scrapper.SchemaRow, error)

func (*DuckDBScrapper) QuerySegments

func (e *DuckDBScrapper) QuerySegments(ctx context.Context, sql string, args ...any) ([]*scrapper.SegmentRow, error)

func (*DuckDBScrapper) QueryShape added in v0.8.3

func (e *DuckDBScrapper) QueryShape(ctx context.Context, sql string) ([]*scrapper.QueryShapeColumn, error)

func (*DuckDBScrapper) QuerySqlDefinitions

func (e *DuckDBScrapper) QuerySqlDefinitions(ctx context.Context) ([]*scrapper.SqlDefinitionRow, error)

func (*DuckDBScrapper) QueryTableConstraints added in v0.9.0

func (e *DuckDBScrapper) QueryTableConstraints(ctx context.Context) ([]*scrapper.TableConstraintRow, error)

func (*DuckDBScrapper) QueryTableMetrics

func (e *DuckDBScrapper) QueryTableMetrics(ctx context.Context, lastMetricsFetchTime time.Time) ([]*scrapper.TableMetricsRow, error)

func (*DuckDBScrapper) QueryTables

func (e *DuckDBScrapper) QueryTables(ctx context.Context, opts ...scrapper.QueryTablesOption) ([]*scrapper.TableRow, error)

func (*DuckDBScrapper) RunRawQuery added in v0.13.7

func (*DuckDBScrapper) SqlDialect added in v0.1.9

func (e *DuckDBScrapper) SqlDialect() sqldialect.Dialect

func (*DuckDBScrapper) ValidateConfiguration

func (e *DuckDBScrapper) ValidateConfiguration(ctx context.Context) ([]string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL