Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or use MindsDB Cloud.
- To connect DuckDB to MindsDB, install the required dependencies following this instruction.
- Install or ensure access to DuckDB.
Implementation
This handler is implemented using theduckdb Python client library.
The required arguments to establish a connection are as follows:
databaseis the name of the DuckDB database file. It can be set to:memory:to create an in-memory database.
read_onlyis a flag that specifies whether the connection is in the read-only mode. This is required if multiple processes want to access the same database file at the same time.