com.softinio.duck4s.algebra.DuckDBConfig
See theDuckDBConfig companion object
case class DuckDBConfig(mode: ConnectionMode, readOnly: Boolean, tempDirectory: Option[String], streamResults: Boolean, additionalProperties: Map[String, String])
Configuration options for DuckDB connections.
This case class provides a comprehensive set of configuration options for customizing DuckDB connection behavior, including connection mode, read-only access, temporary directory settings, and additional JDBC properties.
Value parameters
- additionalProperties
-
Additional JDBC properties to pass to the connection
- mode
-
The connection mode (in-memory or persistent)
- readOnly
-
Whether the connection should be read-only
- streamResults
-
Whether to enable JDBC result streaming for large result sets
- tempDirectory
-
Optional custom temporary directory for DuckDB operations
Attributes
- See also
-
ConnectionMode for available connection modes
- Since
-
0.1.0
- Example
-
// In-memory database with streaming enabled val config = DuckDBConfig( mode = ConnectionMode.InMemory, streamResults = true ) // Persistent read-only database val readOnlyConfig = DuckDBConfig( mode = ConnectionMode.Persistent("/path/to/database.db"), readOnly = true )
- Companion
- object
- Graph
-
- Supertypes
Members list
In this article