⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k

DataGrip

DataGrip is a JetBrains IDE for working with multiple databases, including DuckDB. This guide covers the quickest way to connect. For more detailed instructions on how to start working with DuckDB, check out the DataGrip documentation.

Quote

DuckDB turned out to be the simplest option to integrate.

– Ilia Epelbaum, DataGrip, JetBrains, from the “How JetBrains Built Cross-Database Queries into DataGrip with DuckDB” blog post

Installing DataGrip

Download DataGrip from the official JetBrains website and install it.

DataGrip Download Page

Creating a DuckDB Data Source

Go to File New Data Source and select DuckDB.
Alternatively, open the database explorer (⌘1 on macOS, Alt+1 on Windows and Linux), click New (+), and go to Data Source DuckDB.  

DataGrip New Data Source Menu

Setting Up the Connection

On the General tab, choose a connection type:

  • Default: a database file.
  • In-memory
  • URL only

For Default, click Open to select an existing database file, or New to create one. DataGrip fills in the URL for you.

DataGrip Connection Settings

Getting the Driver and Testing the Connection

If you see the Download missing driver files link, click it.

DataGrip Download Missing Driver Files

Then click Test Connection, and then OK.

DataGrip Test Connection

Running Queries

Select your data source in the database explorer and press F4 to open a query console.

DataGrip Database Explorer

Write your SQL and run it. For demo purposes, we loaded data from the Sakila sample database.

Running SELECT * FROM actor shows the results in the Database Output pane, along with the row count and execution time.

DataGrip Query Results

Quote

We highlight that it’s DuckDB.

– Ilia Epelbaum, DataGrip, JetBrains, from the “How JetBrains Built Cross-Database Queries into DataGrip with DuckDB” blog post

Where to Learn More

Quote

With DuckDB and its support for custom table functions, cross-database queries have finally become practical in DataGrip. Users can join data from PostgreSQL, MySQL, MongoDB, or any other supported database in one query, without setting up extra infrastructure.

– Maxim Sobolevskiy, Head of Database Ecosystem at JetBrains, from the “How JetBrains Built Cross-Database Queries into DataGrip with DuckDB” blog post

This guide only describes how to get started with DuckDB in DataGrip. To see everything DataGrip allows you to do, watch the videos in the DataGrip playlist on YouTube or explore the features overview page or the DataGrip home page. DataGrip is free for non-commercial projects, and a 30-day free trial is available to explore it yourself.

© 2026 DuckDB Foundation, Amsterdam NL
DuckDB Home Code of Conduct Trademark Use Blog