Questions tagged [datagrip]

JetBrains' commercial Database IDE(formerly 0xdbe). This is a cross platform database IDE that supports most relational databases.

DataGrip is a multi-engine database environment from JetBrains. It supports:

  • Oracle
  • PostgreSQL
  • AWS Redshift
  • MySQL
  • Microsoft SQL Server
  • Microsoft Azure
  • DB2
  • Sybase
  • SQLite
  • HyperSQL
  • Apache Derby
  • H2
  • Exasol

Targeting the needs of professional SQL developers, DataGrip makes working with databases an enjoyable experience.

Main features

Database objects

DataGrip introspects objects in your databases and displays them grouped in folders by schemas. It also provides a UI for adding and editing tables, columns, indexes, constraints, etc. Quick navigation brings you to any object, whether it has just been created in your code or has been read from a database.

Data editor

A powerful table editor lets you add, remove, edit, and clone data rows. Navigate through the data by foreign keys and use the text search to find anything in the data displayed in the table editor. All your changes are stored locally and can be submitted at once. Multiple fields can also be edited at once.

Query editor

Transform and move blocks of code, use multi-cursors to manage selection, format code according to specific style. DataGrip provides context-sensitive, schema-aware code completion, helping you write code faster. Completion is aware of table structure, foreign keys, and even database objects created in the code you're editing.

Additional Features

Code Reformatting

Reformat queries with a single click through user-definable code style schemes. Formatting currently supports: SQL, JSON, HTML, XML, and CSV.

Query Templates (Live Templates)

Ability to define custom, commonly-used SQL snippets that can be generated via an alias using smart code completion (e.g. define a common set of joins to auto-generate when typing 'common' into the SQL editor).

Safe Refactor

Refactor code without worrying that your changes will break other portions of your project. DataGrip will automatically check and alert, if a refactor change has the potential to break other portions of code within your project.

Links

679 questions
0
votes
0 answers

Import of csv to DB falsely appending # in front of _ (i.e. "_" -> "#_") - DataGrip Postgres

I am importing a csv from excel to a table in postgres through JetBrains DataGrip and the underscores are being imported with a hash sign in front of them like "#_". For instance in the csv "foo_bar" goes to "foo#_bar". When it shows the import…
terra_rob
  • 13
  • 1
  • 3
0
votes
1 answer

how does the sql statement work in remote server after typed in local PC?

I used DataGrip to connect a Postgresql database on a remote server. I chose 'open console' and typed a statement (CREATE INDEX, specificlly) to update the database(not query). It took a long time to execute. Can I just close DataGrip? Will the…
Eve L
  • 15
  • 4
0
votes
1 answer

How to repeat input a character in DataGrip?

I would like to add comment line between each block of SQL statements. Is there a easy way to type several -- in DataGrip like this: ------------------------------ In vim, we can type a number followed by i-, in DataGrip, I have to hold down - key…
Nick
  • 8,451
  • 13
  • 57
  • 106
0
votes
1 answer

Changing statement separator in Intellij Idea or Datagrip like in Squirrel

is it possible to change statement separator in Intellij Idea database tool? To be exact, in squirrel, you can change statement separator, so you don't need to use symbol ; but you can change it to different symbols like @!? etc. Example select *…
0
votes
1 answer

Remove SQL statement from output pane Datagrip

In Datagrip, when you execute a statement you can get the output in the output pane. I only want the resultrow to see, see my example below: Red is the part i want to exclude, i only want the blue part. Is there any way to do this? I've looked on…
Nebulosar
  • 1,727
  • 3
  • 20
  • 46
0
votes
1 answer

How to format SQL with multiple variables per line in SSMS or DataGrip

is there an sql formatting feature in SSMS or DataGrip that formats expressions with multiple variables per line? / multiple columns for sql insert and select statements? like insert into many_col_tbl ( col_1, col_2, col3, ... col_99,…
monkeyhouse
  • 2,875
  • 3
  • 27
  • 42
0
votes
0 answers

How to enable the vertical and horizontal scrollbars in DataGrip IDE?

I recently downloaded DataGrip for Windows and I noticed that there are no scrollbars for the console output. I have searched all over the settings but I cant finding anything that will let me add or enable the scrollbars for the result ouput. I…
swag antiswag
  • 349
  • 1
  • 4
  • 12
0
votes
1 answer

How can I access to database via socket connection? (w/ DataGrip)

please help me to solve this! I'm using Sequel Pro at Mac(using MySQL), and now introduced DataGrip by JetBrains. and wanna connect to localhost:3000 n' databases, as Sequel's "socket connection"(name: localhost, username: root, others are…
0
votes
0 answers

Can't add foreign key PostgreSQL

Can't add foreign key to table. DB Graph: https://pp.vk.me/c638520/v638520058/11d8a/yqKLEPtqNOk.jpg Code: ALTER TABLE public.row DROP CONSTRAINT statement_section_id_fk; ALTER TABLE public.row ADD CONSTRAINT statement_section_id_fk FOREIGN KEY…
0
votes
1 answer

View DDL of Insert Row from IDE

Is there a way to see the DDL that would be executed from the table editing view within DataGrip? I don't have enough reputation to post an image but the view I'm talking about is here. What I'm looking to do is to be able to copy the DDL from…
Groggler
  • 3
  • 2
0
votes
0 answers

Cannot fetch from cursor

Datagrip cannot read from cursor for the below query: SELECT public.get_user_summary('ALL'); FETCH ALL FROM ref1; Function code: CREATE OR REPLACE FUNCTION public.get_user_summary(username text) RETURNS refcursor AS $BODY$ DECLARE ref1 refcursor…
gmsi
  • 1,062
  • 1
  • 16
  • 29
0
votes
0 answers

Datagrip with postgres replace returned parameters in stored functions

DataGrip replaces "RETURNS TABLE(val1 type1, val2 type2, ...)" on "RETURNS set" in stored functions. But when I called in psql \ef is shows "RETURNS TABLE.." Is that a bug or feature of DataGrip? It's very uncomfortable to edit…
0
votes
1 answer

Can't create new table in an empty database in intellij idea

It seems to be impossible to create a new SQLite data database entirely from scratch in IntelliJ idea or Datagrip. here is what I do: From the database window, create a new SQLite database. The new database shows up in the database window. From the…
humazed
  • 74,687
  • 32
  • 99
  • 138
0
votes
3 answers

How to connect to SQL Server 2014 with datagrip

My SQL Server Management Studio is working but datagrip is not connecting to SQL Server. My local instance is IMZZA\sqlserver2014
0
votes
1 answer

Importing .csv files into Datagrip?

I just tested importing 1321 records (one int column as a key, two text columns as nvarchar(100)) to a MS SQL server. In Navicat this took me 7 seconds to create with the import wizard In Datagrip it took 280ms per row (370 seconds). The method I…
trench
  • 5,075
  • 12
  • 50
  • 80