database

package
v0.1.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTableView

func AddTableView(ctx context.Context, tableName string, db *sql.DB, filters ...string) error

func AddTableViews

func AddTableViews(ctx context.Context, db *sql.DB, filters ...string) error

AddTableViews creates a view for each table in the data directory, applying the provided duck db filters to the view query

func EnsureDatabaseFile

func EnsureDatabaseFile(ctx context.Context) error

func GetRowCount

func GetRowCount(ctx context.Context, tableName string, partitionName *string) (int64, error)

func GetTableViewSchema

func GetTableViewSchema(ctx context.Context, viewName string) (map[string]string, error)

func GetTableViews

func GetTableViews(ctx context.Context) ([]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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