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

Multiple Databases

Currently, the Postgres adapter only supports connections to a single database at a time. To connect to a different database, exit Harlequin and restart it, passing a different DSN, or using the -d option to pass a different database name (the -d option overrides the database name in the DSN if it is provided).

Previous:

Adapter: Postgres

Next:

Transaction Handling

  • Docs
  • Blog
  • About
  • GitHub

Shandy Data LLC ©2025. Icons by Icons8.