Harlequin
The SQL IDE for Your Terminal.
  • Get Started
  • Docs
  • Blog
  • About
  • Sponsor
  • GitHub icon
    tconbeer/harlequin
    GitHub stars4,708 GitHub forks110
  • Getting Started
    Chevron
  • Selecting an Adapter
    Chevron
  • Viewing Files
    Chevron
  • Local Files
    Chevron
  • Remote Objects (S3)
    Chevron
  • Choosing a Theme
    Chevron
  • Using Config Files
    Chevron
  • Customizing Key Bindings
    Chevron
  • Creating a Keymap
    Chevron
  • Selecting Keymaps
    Chevron
  • Managing Transactions
    Chevron
  • Adapter: DuckDB
    Chevron
  • Initialization Scripts
    Chevron
  • Loading Extensions
    Chevron
  • Transaction Handling
    Chevron
  • MotherDuck
    Chevron
  • Adapter: SQLite
    Chevron
  • Initialization Scripts
    Chevron
  • Loading Extensions
    Chevron
  • Transaction Handling
    Chevron
  • Adapter: Postgres
    Chevron
  • Multiple Databases
    Chevron
  • Transaction Handling
    Chevron
  • Adapter: MySQL
    Chevron
  • Adapter: ODBC
    Chevron
  • Adapter: BigQuery
    Chevron
  • Auth and Permissions
    Chevron
  • Adapter: Trino
    Chevron
  • Adapter: Databricks
    Chevron
  • Adapter: ADBC
    Chevron
  • Adapter: RisingWave
    Chevron
  • Adapter: Wherobots
    Chevron
  • Adapter: Cassandra
    Chevron
  • Adapter: NebulaGraph
    Chevron
  • Reference: Default Bindings
    Chevron
  • Troubleshooting
    Chevron
  • Key Bindings
    Chevron
  • Copying and Pasting
    Chevron
  • Appearance
    Chevron
  • Locale
    Chevron
  • Windows Timezone Database
    Chevron
  • DuckDB Version Mismatch
    Chevron
  • Terminal Recommendations
    Chevron
  • Contributing to Harlequin
    Chevron
  • Creating an Adapter
    Chevron

Adapter: DuckDB

Installation

The DuckDB adapter ships with Harlequin; you do not need to do anything else to install it.

Using Harlequin with DuckDB

From any shell, to open one or more DuckDB database files:

$ harlequin "path/to/duck.db" "another_duck.db"

To open an in-memory DuckDB session, run Harlequin with no arguments:

$ harlequin

You can also open a database in read-only mode:

$ harlequin -r "path/to/duck.db"

The following pages detail more advanced options of Harlequin with DuckDB: running initialization scripts, loading extensions, and using MotherDuck.

Previous:

Managing Transactions

Next:

Initialization Scripts

  • Docs
  • Blog
  • About
  • GitHub

Shandy Data LLC ©2025. Icons by Icons8.