duckdb

package
v1.13.4 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootQuery

type BootQuery struct {
	Query string
	Args  []driver.NamedValue
}

type Config

type Config struct {
	DSN         string
	Path        string
	AccessMode  string `json:"access_mode" comment:"read_only"`
	Threads     int    `json:"threads"`
	BootQueries []BootQuery
}

https://github.com/marcboeker/go-duckdb/issues/115 CGO_ENABLED=1 CGO_LDFLAGS="-L/path/to/duckdb.dll" go build -tags=duckdb_use_lib,go1.22 main.go LD_LIBRARY_PATH=/path/to/libs ./main

func (*Config) Build

func (c *Config) Build() (*sql.DB, error)

func (*Config) Init

func (c *Config) Init()

func (*Config) InitBeforeInject

func (c *Config) InitBeforeInject()

type DB

type DB struct {
	*sql.DB
	Conf Config
}

func (*DB) Close

func (m *DB) Close() error

func (*DB) Config

func (m *DB) Config() any

func (*DB) Set added in v1.13.1

func (m *DB) Set() error

Jump to

Keyboard shortcuts

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