Help us shape the future of Go! Take the 2026 Go Developer Survey

drivermgr

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 9 Imported by: 20

Documentation

Overview

Package drivermgr is a cgo wrapper for the adbc_driver_manager.

This provides an implementation of the ADBC interfaces which uses CGO to wrap a shared object implementation of adbc.h

Index

Constants

View Source
const (
	LoadFlagsSearchEnv = 1 << iota
	LoadFlagsSearchPath
	LoadFlagsSearchSystem
	LoadFlagsAllowRelativePaths

	LoadFlagsDefault = LoadFlagsSearchEnv | LoadFlagsSearchPath | LoadFlagsSearchSystem | LoadFlagsAllowRelativePaths
	// LoadFlagsOptionKey is the key to use for an option to set specific
	// load flags for the database to decide where to look for driver manifests.
	LoadFlagsOptionKey = "load_flags"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func (*Database) Close added in v0.10.0

func (d *Database) Close() error

func (*Database) Open

func (*Database) SetOptions

func (d *Database) SetOptions(options map[string]string) error

type Driver

type Driver struct{}

func (Driver) NewDatabase

func (d Driver) NewDatabase(opts map[string]string) (adbc.Database, error)

func (Driver) NewDatabaseWithContext added in v1.7.0

func (d Driver) NewDatabaseWithContext(_ context.Context, opts map[string]string) (adbc.Database, error)

Jump to

Keyboard shortcuts

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