Documentation

DuckDB

Open or create a DuckDB database file in TableR — an embedded analytical database with read/write or read-only mode — and troubleshooting.

DuckDB is an embedded analytical database that lives in a single file. Point TableR at a .duckdb file, or create a new one, and choose whether to open it read/write or read-only.

Overview

TableR opens DuckDB directly from a file on disk — there is no server, host, port, or credential. DuckDB's columnar engine is built for fast analytics over local files.

  • File-based — open or create a single .duckdb file; there is no server.
  • Open mode — read_write to modify, or read_only to inspect a file safely.
  • No credentials — access is controlled by file permissions on disk.

Before you start

  • The path to a .duckdb file, or a folder where you want to create one.
  • Read/write permission if you plan to modify the database.
  • Decide whether to open it read/write or read-only.

Connection fields

DuckDB needs only a database file and an open mode — there is no host, port, or credential.

FieldRequiredDefaultNotes
Database fileYesPath to an existing .duckdb file, or a new file to create.
Open modeNoread_writeread_write to modify, or read_only to inspect safely.
Host / PortNoNot used; DuckDB has no server.
CredentialsNoNot used; access is by file permissions.

Connect with the form

  1. 1
    Choose DuckDB

    Open the launcher and pick the DuckDB card.

  2. 2
    Select or create a file

    Browse to a .duckdb file, or choose a location to create a new one.

  3. 3
    Choose the open mode

    Pick read_write to modify, or read_only to inspect without changes.

  4. 4
    Save and connect

    Save the profile so it reappears in the launcher, then connect.

Verify the connection

Once connected, open a SQL tab and run a quick check:

SELECT version();
SHOW TABLES;

The first statement returns the DuckDB version; SHOW TABLES lists tables (empty on a new database).

Troubleshooting

SymptomLikely causeFix
Unable to open database fileWrong path, or no permission to the file/folder.Re-check the path and permissions; pick a writable location.
File is not a valid DuckDB databaseThe file was not created by DuckDB, or is a different version.Open a real .duckdb file, or create a new one.
Cannot write in read_only modeThe database was opened read-only.Reopen with read_write to make changes.
File is being used by another processAnother process holds the file open.Close other tools using the file and retry.

Next steps