Package io.floci.testcontainers.config
Class DuckDbConfig.Builder
java.lang.Object
io.floci.testcontainers.config.DuckDbConfig.Builder
- Enclosing class:
- DuckDbConfig
Builder for
DuckDbConfig.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates an immutableDuckDbConfigfrom this builder.defaultImage(String defaultImage) Sets the default Docker image for the floci-duck container.Sets a custom DuckDB URL.
-
Method Details
-
url
Sets a custom DuckDB URL. When set, Floci uses this URL and skips floci-duck container management.- Parameters:
url- the DuckDB URL, ornullto let Floci manage the container- Returns:
- this builder
-
defaultImage
Sets the default Docker image for the floci-duck container.- Parameters:
defaultImage- the image name (default "floci/floci-duck:latest")- Returns:
- this builder
-
build
Creates an immutableDuckDbConfigfrom this builder.- Returns:
- the DuckDB configuration
-