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

469 questions
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

Schedule a recurring SQL job using an IDE

I would like to run a basic query at 8am everyday, preferably using the Jetbrains Datagrip IDE. The query is irrelevant, but here it is for illustrative purposes: select month,count(*) as distinct_month into table.table from table2.table What are…
ZJAY
  • 1,467
  • 6
  • 22
  • 42
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
  • 872
  • 1
  • 12
  • 25
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
  • 66,202
  • 30
  • 86
  • 124
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
  • 4,004
  • 9
  • 36
  • 69
0
votes
0 answers

How to change DataGrip settings so that it detects double quotes as strings instead of columns?

I just started using Jetbrains DataGrip at work for Sybase DB developement. All the developement is done using ASE ISQL or RapidSQL. they both accept select "test" as valid command and print test but if i run the same command in DataGrip it detects…
Gurbakhshish Singh
  • 964
  • 1
  • 8
  • 23
0
votes
2 answers

ERROR: relation "students" already EXISTS

When I am executing this query: CREATE TABLE public.students ( id INTEGER PRIMARY KEY NOT NULL DEFAULT NEXTVAL('students_id_seq'::regclass), first_name CHARACTER VARYING(20) NOT NULL, last_name CHARACTER VARYING(20) NOT NULL, major CHARACTER…
Mona Jalal
  • 24,172
  • 49
  • 166
  • 311
0
votes
0 answers

Print log in 0xdbe output

I want to know how to print log in 0xdbe console. For exemple, I'm running a plpgsql script using raise notice, but the notice is printed only after the script finished. DO language plpgsql $$ DECLARE BEGIN raise notice 'please datagrip,…
HenioJR
  • 554
  • 1
  • 8
  • 15
-1
votes
1 answer

"SCRIPT TO..." option in Datagrip?

Decided to pick up Datagrip for my Postgres database. I've worked with SSMS/MS SQL-Server a lot, and one of the nice things about SSMS is the option to select a table and then a menu option called "SCRIPT TO..." and it'll give another list of…
user9754798
  • 133
  • 8
-1
votes
1 answer

DATAGRIP SQL editor doesn't erase statements after being executed

I have a bit of a problem with my DATAGRIP SQL IDE. When i run any type of a statement, for example, lets say, SHOW DATABASES; in the lower part of the IDE - the console, i get the query results, but in the upper part of the IDE where i write the…
Dimitar
  • 1
  • 1
-1
votes
1 answer

Remote postgres database disconnects frequently on azure

I have installed Postgres(11) on Azure, I am connecting to it using Datagrip client, The problem is it disconnects very frequently and connects back when I run some query, takes nearly 5 seconds to connect back. Here I am attaching a picture of…
-1
votes
1 answer

Automatically capitialize things in datagrip

Is there a way in datagrip to automatically capitialize key words even if they are typed in lowercase? For example SELECT, FROM , WHERE , HAVING, ORDER BY?
Daniel L. VanDenBosch
  • 1,473
  • 3
  • 17
  • 42
1 2 3
31
32