Documentation
¶
Overview ¶
Package duckdb runs DuckDB in a container for the services that execute SQL on it (Athena, BigQuery): a Python image with DuckDB, started on the first query, serving the Script the service gives it on port 8080.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoDocker = errors.New("pogi: Docker is not available, so queries cannot run")
ErrNoDocker is why a query cannot run without a container engine: Start's error for that matches it with errors.Is.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
Hub *core.Hub
Name string // what the user knows the service as ("Athena"), for errors
Service string // the label of the container and of its data directory
Script string // the Python program the container runs: a server on port 8080 that answers GET / with 200
// contains filtered or unexported fields
}
Engine is the DuckDB container: started on the first query, kept for the life of the service and removed when it closes.
Click to show internal directories.
Click to hide internal directories.