Documentation
¶
Index ¶
Constants ¶
const DefaultLibPath = "/opt/homebrew/lib/libduckdb.dylib"
DefaultLibPath is where a Homebrew install puts libduckdb on macOS, the usual development setup; SQLFLOW_DUCKDB_LIB overrides it.
const DefaultLinuxLibPath = "/usr/local/lib/libduckdb.so"
DefaultLinuxLibPath is where scripts/install-libduckdb.sh and the container image put the library. The pinned version lives in the DUCKDB_VERSION file, not here: nothing in the Go build cares which release is installed, only where it landed.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶ added in v1.0.5
type DB struct {
// contains filtered or unexported fields
}
DB is an open DuckDB database. It exists to hold the ADBC database handle, which is what allows more than one connection against the same file.
That matters twice over. A file-backed database is how pipeline state survives a crash, and a second connection is how that state can be read -- by the stats endpoint -- without disturbing the writer: connections have independent transaction state, so a reader sees committed rows only and never blocks the pipeline.
func OpenPath ¶ added in v1.0.5
OpenPath opens a DuckDB database over ADBC. A non-empty path is a file, so tables created on it outlive the process; an empty path is in-memory.