Class DuckDbDatasourceConnection
Connection configuration for DuckDB databases.
public class DuckDbDatasourceConnection : DatasourceConnection, IDatasourceConnection
- Inheritance
-
DuckDbDatasourceConnection
- Implements
Remarks
Warning
DuckDB database support is not available in the Community Edition of Velocity. It requires the Full Edition.
DuckDB is an embedded database, so there is no server to connect to. The Database property is the path of the database file, which is created on first use. Schemas live inside that one file.
Only one process can open a DuckDB file at a time. Connections within the same process share it.
Examples
var conn = new DuckDbDatasourceConnection
{
Database = "./data/analytics.duckdb"
};
using (var m = new Manager(conn))
{
var schema = m.LoadSchema("main");
}
Properties
- DatasourceType
Gets the datasource type for DuckDB.