db

package
v0.0.0-...-9022657 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*sql.DB
	// contains filtered or unexported fields
}

func Create

func Create(duckPath string, p Profile) (*DB, error)

Create creates a new duckdb at the given path and loads the profile into it.

func Open

func Open(duckPath string) (*DB, error)

func (*DB) Path

func (db *DB) Path() string

Path returns the path to the database.

type Profile

type Profile struct {
	Filename string
	Data     io.Reader
	Meta     json.RawMessage
}

Profile is a profile that can be converted into a database.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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