This is the implementation of the DuckDB data handler for MindsDB. DuckDB is an open-source analytical database system. It is designed for fast execution of analytical queries. There are no external dependencies and the DBMS runs completely embedded within a host process, similar to SQLite. DuckDB provides a rich SQL dialect with support for complex queries with transactional guarantees (ACID).Documentation Index
Fetch the complete documentation index at: https://docs.mindsdb.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or Docker Desktop.
- 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.