Quantcast
Channel: DataGrip : The Cross-Platform IDE for Databases & SQL | The JetBrains Blog
Viewing all 267 articles
Browse latest View live

Announcing 0xDBE 1.0 Preview

$
0
0

We at JetBrains are approaching the release of our brand new IDE for developers who work with SQL and databases. We’ve started the 0xDBE 1.0 EAP (Early Access Program) over a year ago and we appreciate how many people have participated in the program. Your feedback has been instrumental in shaping and improving the product.

Today, we’re really excited to announce the 0xDBE 1.0 Preview, a nearly-finished version of our database IDE. Please give it a try and share your impressions to help us polish it before release to market.

DBIDE2_splash_upd (1)

Along with the preview we’re launching a 5-8 minute survey to get a better understanding of how you work with data. We would very much appreciate your input and feedback.

Note 0xDBE is not the final name of the product and will be changed. Now, let’s take a tour of what we’ve improved since the EAP launch.

Faster and more accurate schema introspection

First of all, we’ve reworked the way the IDE fetches meta information about database objects, and extended the JDBC-based introspection for all supported database engines to make it more native, accurate and fast. As a result, the UI has also changed. Now you can group objects in the Database view. Tables, functions, views, etc. are divided into folders and can be collapsed and expanded.

Introspection

Modify table action

Now you can Modify Table (Ctrl+F6, or Cmd-F6 for OS X) from the Database tool window, or even the Editor or the Query Console. This action lets you add, change and remove columns, indices, and foreign keys. An instant SQL preview is available so you can get a DDL statement for your changes:

Modify

Text search in table editor

Sometimes it is useful to find data inside a table quickly without writing a statement. Call up a text search in the Table Editor with Ctrl+F (Cmd-F for OS X). It’s especially helpful if you don’t know which exact column contains the data you’re looking for. Regular Expressions are available for this search as well.

Find

Code generation

The Generate action, available via Alt+Ins (Cmd-N for OS X), now helps you generate and modify DDL statements. There is a pop-up providing UI for generating statements for creating database objects, for instance, tables, functions and procedures.

You can also modify existing DDL statements and generate adding indexes, keys or columns to a created table.

Generate

The Edit as Table action from the context menu is valid for DML, so if you have several INSERT statements, you can modify the data being inserted as a table. If you add a row to this table, another INSERT statement will be generated:

DML

Multiple query consoles

We’ve added a dedicated action for opening a new console so you can assign any shortcut to it to open it even faster. Several open consoles are available, and you can switch between them via the Files tool window, or the Recent Files menu, or the Navigation toolbar. Each console now has a schema switcher:

New console

Query console local history

You’ll be glad to know that consoles are now equipped with local history. Use it to review the changes you’ve made to SQL code in a particular console, or compare versions in the diff viewer and revert if needed:

Local history

Execution behavior

We’ve extended execution options as well. First, running under selection is now improved and works in files. You can choose what to do with selected SQL code: run as several statements, run as one statement, or make a smart expansion to a valid script.

When the cursor is inside a query, statement execution can now be customized with a few possible options. Define its intended behavior: execute the smallest statement, the largest statement, or ask you to choose what to execute.

If the cursor is outside of any statement, you can configure it to do nothing, execute the whole file, or execute statements to the end.

Executie options

Running statements from the Structure view

Running SQL statements with Ctrl+Enter (Cmd-Enter for OS X) is now possible from the Structure view/popup:

Structure view

Execution plan

An execution plan for statements is provided as well:

Explain plan

Compare query results

You can compare the results of two queries using the diff viewer:

Compare

CSV format support

Now when opening a CSV file, choose the Edit as Table action from the context menu. In the Data Format Configuration window, you can specify the value of the delimiter, whether your file has a header, when to quote values, and a few other things. It offers a preview as well:

CSv

User parameters

A new UI for editing Parameter Patterns is available in Settings > Database > User Parameters. Now Regular Expressions are highlighted and you can choose in what dialect these patterns are valid:

Params

Visual diagrams

Visual diagrams are now available for databases. Build your own diagram displaying the dependencies between objects:

Diagrams

Improved navigation

To navigate to a database object (like table, procedure and so on), press Ctrl+N (Cmd-O for OS X). When navigating to a table, a table editor will open. When navigating to a procedure or function, you’ll jump to the alter DDL statement:

Navigate

It’s also worth mentioning that 0xDBE has improved its support of HDPi for Windows and Linux; offers a Distraction Free mode; and makes it possible to install plugins (e.g. Terminal, Git integration), among other bug-fixes and minor enhancements.

0xDBE will be released in the middle of November as a part of JetBrains Toolbox. Its pricing will be aligned with the “Single IDE” plan. The “All Products” bundle will include 0xDBE.

Download 0xDBE 1.0 Preview today and please share your impressions with us.

Develop with pleasure!

 


0xDBE 1.0 EAP 143.1301 is Out

$
0
0

Something fresh to start this new day—latest 0xDBE EAP build, loaded with bugfixes and improvements. And, its looks have changed too, because we just rebranded the entire company!

Splash

Apart from visual changes, we added native introspection for Sybase. Introspection became more accurate and fast. Among other things now you can see table check constraints and triggers.

Sybase

The Modify Table window acquired some new options:

  • Choose what you want to do finally: apply changes to the database, or open generated code in the text editor. If you are editing existing DDL via this window, you can replace it.
  • Create new keys or indices just from the context menu of the column. Or it can be several columns if you select them with the Ctrl/? pressed.
  • Dedicated tab for keys lets you manage unique keys of the table.

Modify

Check out the new website, and don’t forget to send us your feedback via our issue tracker.

_

0xDBE team

DataGrip 1.0 (formerly 0xDBE): A new IDE for DBs and SQL

$
0
0

Hi there,

For a year and a half we ran an Early Access Program (EAP) for this product while it was still known as 0xDBE. At some point one needs to stop and draw the line.

We thank all of you who gave us feedback and we’re looking forward to your help with the following versions.

So please welcome DataGrip 1.0, our IDE for databases and SQL!

DataGrip1_splash@2x

Access major database management systems

  • Big players on the market: Oracle, SQL Server, DB2, Sybase
  • Popular among the community: MySQL, PostgreSQL
  • Small but useful: SQLite, Apache Derby, HyperSQL and H2

Modify database objects and get resulting scripts

DataGrip provides a UI for operations like creating/modifying tables and managing their columns, keys and indices. Execute generated code at once, or open it in the text editor and continue to work with the DDL script directly.

modify

Write SQL efficiently and avoid repetitive coding

With DataGrip you can write code faster by making use of code completion. Just start typing the name of a database object, identifier or variable to get a list of matching suggestions. DataGrip is aware of dependencies for completing JOIN clauses, can suggest types of parameters for functions and procedures, and describe table structure for INSERT statements. There are Live Templates for generating conventional parts of statements – use the default ones and create new ones as well.

complletion

Navigate through the code and rename as you type

DataGrip resolves object references in SQL files. If you rename a variable or alias, they will be renamed throughout the code. If you rename database objects from SQL, they will also be renamed in the actual database.

The IDE shows usages of objects (table, column, etc.) or variables in dedicated views. Navigation tools help you select an object in various contexts like the editor, schema view, and others.

refactorings

Work with data and explore relationships

Powerful table editor lets you add, remove, edit, and clone data rows. Use the filter text field to see only the data you need, without writing WHERE clauses. The other way to find what you need is the text search. It’s helpful if you don’t know which exact column contains the data you’re looking for. Regular expressions are available in the text search. Navigate through the data by foreign keys—you can go to the data your row is referring to and vice versa.

tableeditor

Profile queries and compare results

Choose what you want DataGrip to do when the Execute button is clicked—execute the subquery, execute the outer query, or execute the whole script. Do you want a particular part of code to be executed? Just select it and run. Execution plan is provided. Result-set is similar to the table editor with the same options available including adding/deleting rows, text search, and data navigation. Compare two result-sets in diff viewer.

executing

DataGrip is based on IntelliJ Platform which brings:

  • Text editor with multiple cursors and syntax-aware selection
  • Version control systems integration: Git, Subversion, etc.
  • Plugin ecosystem: Terminal, Textmate bundles, etc.

See DataGrip features page for CSV editor, diagrams, parameterized queries and more.

FAQ

Is DataGrip available via JetBrains ToolBox as part of the “All Products” pack?
Yes, it is available both as a Single IDE and as part of “All Products.” If you already have “All Products,” you can already use DataGrip.

Does DataGrip repeat the functionality of the database tools in other JetBrains IDEs?
Yes, the first version focuses on that core functionality.

Can I use DataGrip with SQL dialects that are not listed?
Yes, JDBC driver is the only requirement.

Are stored code debugging, administration tools and NoSQL features planned?
Yes, we’re going to add this functionality in future versions.

Can I suggest a feature or communicate my feedback?
Yes! Please talk to us via the feedback form, issue tracker, community forums, and Twitter.

Yours,
The DataGrip team
_
JetBrains
The Drive to Develop

How Many SQL Developers Is Out There: A JetBrains Report

$
0
0

Last week we have released DataGrip 1.0. Some time before the release we decided to learn more about how people work with data. We’ve carried out a small survey (big thanks to everyone who participated), and by the way today we’re sending out one-year subscription for any JetBrains product of their choice to a lucky ten of them, but let’s get back to the point.

database_report_splash_2

During our survey we’ve collected a total of 2,000 answers, with one half coming from the JetBrains blog and Twitter account, and the other—from external websites that re-posted the announcement.

As it turns out, 36% of StackOverflow users that we’ve polled confirm they had recently worked with SQL. According to Evans Data Corporation, there are approximately 19 million developers in the world, which gives us an esitmated 7 million of people using SQL today.

If you’re interested in the full survey details, get it here.

And, of course, you’re welcome to take DataGrip for a free 30 day test drive by simply downloading it from our site.

_
JetBrains
The Drive to Develop

DataGrip 1.0.1 Update is Out

$
0
0

Hello! It’s time for the first minor update of DataGrip 1.0 already! Here’s a list of this update highlights:

PostgreSQL hstore ‘?’ operator support:
Hstore

Directory-based DDL data source:
Folder

Parameter info for Microsoft SQL stored procedures works properly at the end of files:
Completion

To get the update, use the Check for Update menu command, or download DataGrip 1.0.1 setup from our website.

The complete list of changes can be found here.

Your feedback is very welcome. Share it on our forum, here in the comments or submit requests directly to our issue tracker.

The DataGrip team
_
JetBrains
The Drive to Develop

DataGrip 1.0.2 Update is Released

$
0
0

Hi! We are glad to introduce you a new DataGrip update. Please take a look at the most notable changes it brings.

This January PostgreSQL 9.5 was released, and DataGrip now supports syntax highlighting and completion for its new features:
postgres

Сustom types in SQL Server (alias types and table types)  are now introspected and available for completion:
Custom types

Table and column comments can now be modified and created from UI:
Comments

We’ve also added a possibility to truncate multiple tables at once:

truncate

To update your copy of DatGrip, use the Check for Update menu command, or download the latest DataGrip 1.0.2 setup from our website.

Please check the release notes for the complete list of changes.

We appreciate your feedback on changes in our forum and your bug reports is our issue tracker.

The DataGrip team
_
JetBrains
The Drive to Develop

DataGrip Competitive Discount: 25% Off

$
0
0

There is plenty of SQL tools on the market, from simple editors to IDEs that provide support for multitude of technologies. They have one thing in common, though: we consider them to be DataGrip competition. We believe that switching to DataGrip is surely going to make it worth your while in itself, but we also know that nobody wants to pay double for their tools.

This is why we’re offering 25% off DataGrip subscription price for a proof of purchase of a competitive database development product.

To apply for competitive discount, please attach a proof of purchase of a competitive product to the following request form. It may be an invoice, receipt or any similar document.

button
 

Competitive discount can’t be combined with other discounts (such as start-up or volume discounts), and doesn’t apply to existing DataGrip subscriptions. All the applications are reviewed manually, so please be patient.

The DataGrip team
_
JetBrains
The Drive to Develop

DataGrip 1.0.3 Update

$
0
0

Here’s a a quick bugfix DataGrip update, bringing you some nice stuff to try right away.

Parameterized query plan can now be explained in Oracle without providing parameter values:

oracle

CSV extractor now quotes values properly, making it simpler to import CSV files. Have a watch of this short video tutorial:

Please use the Check for Update menu command, or download the latest DataGrip 1.0.3 setup from our website.

Сheck the release notes for the complete list of changes.

The DataGrip team
_
JetBrains
The Drive to Develop


DataGrip 2016.1 EAP is Open

$
0
0

Hi there!

In case you missed it, the other day we’ve announced our new product versioning model, in which the version numbers are formatted according to this pattern: YYYY.R. One of the reasons why we did this is to help users to better understand which particular version of, say, PHPStorm has the same database-related features as the current version of DataGrip. So, without any further ado we are going to announce the Early Access Program for DataGrip 2016.1.

DataGrip2016_1EAPOpen_splash

Let’s have a look on what you can already try.

Connectivity

We improved the interface for using the SSH tunnel.

SSH/SSL tab is not hidden anymore depending on the driver — you can always see it. As you may know, you can copy SSH settings from some other data source. Now the password is copied as well, so you don’t need to do anything else except pressing “Copy from…”:

CopySSH

We added a new warning that will inform you if the URL can’t be parsed. It likely happens if you use some DBMS we don’t directly support:

SSHtemplateInspection

This problem can be fixed by clicking “create template”. You will be offered to create your own template for JDBC URL:

NewTemplate

We have new inspections for SQL Server connection. Some of our users had difficulties with it, often because they specified the wrong port number. Now DataGrip will inform you about this situation. Specify the correct port number by pressing Apply near the Instance field:

SQlServer inspections

In General tab for SQL Server data source now there is a completion for hosts, instances and databases. Thus, you can see the complete list of what you need by pressing Ctrl+Space in the text field.

SQLCompletion

PostgreSQL support

Some PostgreSQL features like WITHIN GROUP and window functions for custom aggregates are now properly highlighted and available for completion.

PostgresNewSupport

We improved the support for table functions: they’re highlighted and available for completion. Automatic aliases can be used for qualification, it is not the problem for the SQL editor anymore:

tableFunctionResolve

Also, we’ve added the support for functions in indexes: you can navigate to them in the database view just from the index DDL by clicking them while holding Ctrl/Cmd:

Functionsinindex

Editor

We’ve added the support for Right-to-left languages (Arabic, Hebrew):

RTL languages

This is the issue we strongly need your feedback for. If you use these kinds of languages and notice problems, please don’t hesitate to write in our issue tracker.

There are new intentions Qualify identifier and Unqualify identifier:

Qualif

We also fixed the very annoying bug with losing the formatting of Oracle functions and procedures while loading source code.

That how it was before:

FormatterBeforeNew

Now everything is fine:

FormatterAfterNew

Also, in this version you will find:

  • Oracle 12 grammar support.
  • Moving elements in XML left or right by Alt+Ctrl/Cmd+Shift+Arrow keys.
  • Objects that are not introspected now can be resolved to DDL statement is there is any.

As always, we thank all our EAPers for helping making DataGrip better. Follow us on twitter, share your feedback on the forum and stay tuned!

The DataGrip team
_
JetBrains
The Drive to Develop

DataGrip 2016.1 Released!

$
0
0

Hello!

Like all other desktop products from JetBrains, DataGrip is switching to the new versioning scheme. So please give a warm welcome to the next release, DataGrip 2016.1.

DataGrip2016_1_splash

For those of you who were curious and impatient to try the newest things in this update, we did open an EAP program a month ago. We thank all of the EAPers who helped us by test-driving all the new features we added in DataGrip 2016.1. Let’s have a look at them.

Connectivity

We’ve improved the interface for using the SSH tunnel.

SSH/SSL tab is not hidden anymore depending on the driver—you can always see it. As you may know, you can copy SSH settings from some other data source. Now the password is copied as well, so you don’t need to do anything else except selecting  “Copy from…”:

CopyFromSSH

We’ve added a new warning to alert you if a URL can’t be parsed. This is likely to happen if you use some DBMS we don’t directly support:

URLTemplate

This problem can be fixed by clicking “create template”. You will be offered to create your own template for JDBC URL:

NewURLTemplate

We now have new inspections for SQL Server connection. Some of our users had difficulties with it, often because they specified the wrong port number. Now DataGrip will inform you about this situation. Specify the correct port number by clicking Apply near the Instance field:

UnresolvedPortMSSQL

In the General tab for SQL Server data source, now there is completion for hosts, instances and databases. Thus, you can see the complete list of what you need by pressing Ctrl+Space in the text field.

ConnectionCompletion

We improved the way MySQL tells you about the errors in connection. Before, it was just “Could not create connection to database server. Attempted reconnect 3 times. Giving up.” Now, for instance, if user or password is incorrect, you will know about it:

MySQLConnectivity

Editor

Welcome new intentions, Qualify identifier and Unqualify identifier:

quote

Now DataGrip displays common table expressions in Structure View:

structureview

Starting with this version, Structure View can show long names without shortening them in an unpredictable way.

Also, we’ve added support for Right-to-left languages (Arabic, Hebrew):

arabic

IDE

Starting with this version of DataGrip, you will be able to use file scopes, which are familiar to some IntelliJ IDEA users. Scope is a set of files to which various operations applya virtual folder, so to speak.

To manage scopes, go to Preferences/Settings → Appearance and Behavior → Scopes.

ScopesOptions

Then you will be able to see scopes in the Files panel (Ctrl/Cmd + 2).

ScopesFiles

We’ve added by-word difference highlighting in the diff viewer — now it’s easier to clarify the distinction between two files. Don’t forget that you can use diff viewer to compare two versions of the script in local history.

wordbyworddif

PostgreSQL support

Some PostgreSQL features like WITHIN GROUP and window functions for custom aggregates are now properly highlighted and available for completion:

withingroup

We improved support for table functions: now they’re highlighted and available for completion. Automatic aliases can be used for qualification and are no longer a problem for the SQL editor:

functionqualifies

Also, we’ve added support for functions in indexes: you can navigate to them in the database view just from the index DDL, by clicking them while holding Ctrl/Cmd:

indexresolve

Other fixes and enhancements in this release include:

  • Oracle 12 grammar support.
  • Moving elements in XML left or right with Alt+Ctrl/Cmd+Shift+Arrow keys.
  • Objects that are not introspected now can be resolved to DDL statement is there is any.
  • Ctrl/Cmd+F text search in Terminal plugin.
  • Fix for the issue of losing the formatting of Oracle functions and procedures.
  • Remote Hosts Access plugin is available for installation.

That’s it! Get your 30-day trial of DataGrip today if you haven’t before, or just enjoy new features of DataGrip if a happy user of ours already.

Your feedback is welcome in our twitter, forum and the issue tracker. Let us know what you think!

Your DataGrip Team
_
JetBrains
The Drive to Develop

 

A very important security update: DataGrip 2016.1.1

$
0
0

Hello! This is the first bug-fix update for DataGrip 2016.1 and it’s very important.

This update contains fixes for two security issues inside IntelliJ Platform. The vulnerabilities, in various forms, are also present in DataGrip 1.0; therefore, patches for that version is also available.

Find more information about the issues, the affected versions and ways to update in this special blog post: http://blog.jetbrains.com/blog/2016/05/security-update-for-intellij-based-ides.

It is strongly recommended for all users to install the update as soon as possible.

Your DataGrip Team
JetBrains
The Drive to Develop

We Open DataGrip 2016.2 EAP

$
0
0

We are glad to open the EAP (Early Access Program) for DataGrip 2016.2. As usual, it means that you can try new features before the official release. Read on to find out what’s new, improved and already available.

When you install DataGrip on Windows, you will be offered to associate *.sql files with DataGrip. Also, it is possible to open *.sql files from the “Open with” context menu:

Installer

We’ve added completion for database names in the connection dialog. Make sure you’re logged in to the server, and then press Ctrl+Space (Cmd+Space for Mac):

CompletionForDatabases

Database view

Some changes happened to the instrospector. We’ve replaced the way schemas are selected from the tab in Properties, so now you will find all schemas of the server by clicking “More Schemas…” in the database view. Choose the schemas you want to see here and hide any you don’t need from the context menu. Now you need to refresh your data source if you’ve updated from the previous version. This is what we are trying to improve, and your feedback is very important. Please, tweet at us if you have ideas and suggestions on how to make it better:

ShowMore-min

Auto-scroll to source: If this is turned on, you will automatically navigate to data source from the active console and to the table/view from table editor. If you turn it off, use locate (crosshairs) icon to scroll to source:

Autoscroll_new

Query console

DataGrip now supports search path in PostgreSQL, meaning you can add schemas one by one in the switcher of the console. The console has a list of schemas to look in. If there are two tables with the same name in different schemas, the first one will be used. Thus, the order is important: move schemas in the search path with the mouse or Alt+Arrows:

SearchPath

If you use auto-completion, in case of identical names DataGrip will qualify the name of the object automatically:

QualifySchema

Auto-completion became a little bit better — we’ve removed some elements from the list according to the context. For instance, there are no functions now if we see that you mean table:

RightCompletion

A small enhancement for those who use many languages, IntelliJ-based IDEs including DataGrip now understand what you mean, even if you forgot to switch the language of input:

RussianCompletion

Surround action doesn’t ruin multi-carets anymore. Also, we’ve added surround with function which means that the caret will be placed before the brackets, not after: put the name of the function here. Notice, you can just type “bion” to put get_AuthorByIdOrName function:

Surround

Table editor

Completion for values in table is available by pressing Ctrl+Space (Cmd+Space for Mac). It looks through all the values in the column and offers you a list of possible matches:

CompletionInTables

Some improvements have been made in PostgreSQL: now you can modify different range types:

RangeInPostgres

And types with time zones:

TimeZones

We’ve added actions for resizing columns: use Ctrl+Shift+Left/Right (Cmd+Shift+Left/Right for Mac). You can resize several columns at the same time. Ctrl+Shift+Up stands for the default size:

ResizeColumns_new

IDE

A small new feature will help you make DataGrip look different: set any image as the background of your IDE. Add the folder with the picture to the Files panel, and then choose Set Background Image from the context menu:

ImageContext

In this dialog, specify the way the image should be placed and its opacity:

ImageOptions

And the image is set as your background:

ImagedIDE

Those were just the key changes. Others include:

  • Copying SSH and SSL settings  copies the password as well.
  • Go to source works from the preview in Find in path.
  • Inserting the selected keyword in completion by “;” and “,” doesn’t insert a space anymore.
  • CTE support has been improved — we parse it even not finished.
  • Aggregate functions in ORDER BY are not highlighted as errors.
  • The same for PREVIOUS VALUE in DB2.
  • Test connection UI has been improved.

Take DataGrip EAP for a spin and let us know what you think!

Your DataGrip Team

Connecting DataGrip to MS SQL Server

$
0
0

Some specific needs of SQL developers like connecting to SQL Server from OSX and even using Windows authentication can be covered by DataGrip. Since releasing DataGrip, we’ve received lots of comments about connecting to SQL Server. It appears it’s not straightforward as with other databases, requiring a couple of extra steps beforehand. Here is a small guide describing the main problems you may face and how to solve them.

First, ensure that important options in SQL Server Configuration Manager are configured correctly. Make sure the SQL Server Browser is running:

SQLServer Browser

TCP/IP connections need to be enabled:

tcp

If you end up changing anything, restart the server. For most situations, this will resolve connection problems, your server will accept remote connections and you are ready to go. If you still have problems, it could be that TCP port needs to be adjusted or the remote connection to SQL server needs to be enabled in its settings. This tutorial will walk you through it, but we’ll also describe the process here.

Invoke Database View by pressing Alt/Cmd+1 and create a new data source with the appropriate driver. If you use a Microsoft driver, note that it supports SQL Server 2008 and later versions. Here we’ll assume it’s the jTds driver.

NewDataSource

If you have no driver, download it by clicking the link.

Download drivers

Then enter the host name, the instance name and the credentials. Remember that DataGrip offers completion for host, instance and database names (Ctrl/Cmd+Space), but the name of the database is optional. For those who are used to the SSMS interface, let’s compare the connection windows.

Connect SSMS Compare

If the port number conflicts with the instance name, in the jTds driver, the instance name will take precedence over the port number, while the opposite will happen in the Microsoft driver. To avoid confusion, simply remove the port number. If you strongly wish to specify the port number, click the Auto-set button (located to the right of the Instance field) to have the port number set automatically. But remember that the port number can be changed in case you restart the server.

PortConflict

If you need to use Windows authentication, only Microsoft driver will let you do it.

Windows auth

The other way to connect to the server with Windows authentication is to use domain authentication of jTds driver, which lets you connect from any other machine. What is notable, it works on any OS. To do this, go to the Advanced tab of data source properties, set USENTLMV2 to true and specify the server name in the DOMAIN field.

AdvancedForWindows

Then enter your Windows credentials in user/password fields and click Test Connection.

If you want to check which particular databases or schemas are shown in the database view, go to the Schemas tab in Data source properties:

SchemasTab

In case you are already using DataGrip 2016.2 EAP, use More Schemas… in the database view:

MoreSChemas

All selected databases will appear in the database view. This is how it looks in SQL Server Management Studio:

Databases

And here’s how it looks in DataGrip:

ManyDBSCurrent

That’s it! If you are experiencing any other problems, please tweet @ us or create an issue in our youtrack.

Your DataGrip Team

The Drive to Develop

DataGrip 2016.2 New EAP build: Language injections, ligatures, recompile in Oracle

$
0
0

Hello! We’ve prepared a new build for our early adopters. Here’s a list of the most interesting things you can find inside.

Language Injections

Quite possibly the most important feature of this build, it lets you treat string literals as live code written in other languages (like XML, JSON, any SQL dialect or even regular expressions), including formatting, highlighting, usage search, completion, and even refactoring.

Let’s have a closer look at how this feature is useful when you’re working with DataGrip.

Language is auto-injected into a literal when DataGrip is 100% positive of the nature of its contents. For example, if you are working with values from JSON columns, they will be treated as such.

InjectionInsert

Language can also be injected when you’re specifying a column default value. In the following case it’s XML, which makes all the XML-related features available there: rename elements by Ctrl/Cmd+F6, find usages by Alt+F7, and enjoy completion for attribute names. For more information about XML support you can have, read this IntelliJ IDEA help page. DataGrip and IntelliJ IDEA share the common platform, everything described there will work in DataGrip just as well.

InjectionDefault

By default, there are only two predefined injection types: JSON and XML. However, it’s really simple to create your own injections: just press Alt+Enter and then select Inject By Type.

InjectByType

There are many languages you can inject.

InjectionCustom

You will be offered to create a custom type pattern that simplifies the use of injections, for instance, you can configure it to inject XML into any field ending with DATA. You can use regular expressions to define the injection patterns. There’s RegExp assistance, too: Alt+Enter invokes the Check RegExp feature.

RegexpCheck

Your pattern will be added to the list in Settings/Preferences → Editor → Language Injections.

InjectionPrefences

Since it’s possible to inject languages into any string in the SQL code, we can use Check RegExp if we’re inserting a value for the MasterCard pattern.

ezgif-700261300

Did you see this was temporarily injected tooltip? If you want to have the injection whenever you edit a particular piece of code, comment it with “language=” like on the following screenshot. In it is another important example — the use of DynamicSQL that provides coding assistance for the injected fragment.

InjectionDynamicSQL

Dumping Tables

Now you can dump multiple tables and even the entire schema, which means that any data (not only result-sets), can be exported to CSV, JSON or a list of INSERT/UPDATE statements.

DumpDataMenu

Recompile objects in Oracle

We’ve fixed some bugs in recompiling packages and added a way to recompile any DB object. Well, it has to be recompilable, of course, like procedures, views, types, triggers, etc. There is a possibility to recompile only invalid objects in the group, too.

Recompile_new

Ligatures

Just as with any of IntelliJ platform-based IDE, DataGrip editor now officially supports fonts with programming ligatures. To enable ligatures, go to the Settings → Editor → Colors & Fonts → Font, specify a font that supports ligatures, e.g. FiraCode, Hasklig, Monoid or PragmataPro (the font has to be installed) and select the Enable font ligatures option.

LigaturesOptions

And here you are!

LigaturesFont

That’s all for today. Stay tuned!

DataGrip Team

The Drive to Develop

Long-awaited import improvements in the new EAP build, and a little bit more

$
0
0

We are rapidly approaching the 2016.2 release in July. In the meantime, for those who are impatient to try the new features, we’ve got a new EAP build.

Lots of people told us that the current way of importing CSV files (with the help of Edit As Table) was not very convenient. You asked, we delivered! Enjoy a dedicated UI for importing CSV, TSV (well, DSV) files to the database.

Click the schema you want import data to, and choose Import From File… from the context menu. Then choose the CSV file where your data is.

ImportBrowser

You will see the Import dialog window. The left-hand panel is for format specification: choose the delimiter, whether the first row is a header (the separate format options are available for it), and specify if you have quoted values in the file.

On the right-hand side, you see a frame describing the table to be created and a result data preview. Press Delete to remove a column from the result. If you wish to import data to an existing table, just use the context menu of this particular table to choose Import From File…

OK, but what happens if there are errors in the file? Write error records to file option is available. The import process will not be interrupted, but all the wrong lines will be recorded to this file.

ImportCSVWindow

What else?

A couple of small things: select rows with Shift+Space like in Excel.

SelectRow

Also, a very annoying bug has been fixed: foreign keys previously pointed to nowhere once you had renamed the table it pointed to.

ForeignKeyBug

Now all is OK. Many thanks to all who report bugs — keep up the good work!

Your DataGrip Team
JetBrains
The Drive to Develop


DataGrip 2016.2 is Out!

$
0
0

Hello, everybody! We are excited to release DataGrip 2016.2 and this version brings many interesting features. As usual, we thank all our early adopters who helped us make the IDE better during this release cycle.

SplashPreview

What is in DataGrip 2016.2? tl;dr: UI for importing CSV files, JSON and XML support in literals, regular expressions checking, dynamic SQL support, completion in tables, keyboard layout aware completion, recompile packages in Oracle, search path support for PostgreSQL and much more. Let’s look closer.

Database view

Some changes happened to the instrospector. We’ve replaced the way schemas are selected from the tab in Properties, so now you will find all schemas of the server by clicking “More Schemas…” in the database view. Choose the schemas you want to see here and hide any you don’t need from the context menu. Now you need to refresh your data source if you’ve updated from the previous version. Remember, that only schemas added to the database tree are available in code completion.

MoreSchemas

Import CSV

Many of you told us that the way of importing CSV files (with the help of Edit As Table) was not very convenient. You asked, we delivered! Enjoy a dedicated UI for importing CSV, TSV (well, DSV) files to the database.

Click the schema you wish to import data to, and choose Import From File… from the context menu. Then choose the CSV file where your data is.

ImportCSVBrowser

You will see the Import dialog window. The left-hand panel is for format specification: choose the delimiter, whether the first row is a header (the separate format options are available for it), and specify if you have quoted values in the file.

ImportCSVDialog

On the right-hand side, you see a frame describing the table to be created and a result data preview. Press Delete to remove a column from the result. If you want to import data to an existing table, just use the context menu of this particular table to choose Import From File…

What happens if there are errors in the file? Write error records to file option is available. The import process will not be interrupted, but all the wrong lines will be recorded to this file.

Language Injections

This feature lets you treat string literals as live code written in other languages (like XML, JSON, any SQL dialect or regular expressions), including formatting, highlighting, usage search, completion, and even refactoring.

Language is auto-injected into a literal when DataGrip understands the type of the string inside. For example, if you are working with values from JSON columns, they will be treated as such.

InjectionOnInsert

Language can also be injected when you’re specifying a column default value. In the following case it’s XML, which makes all the XML-related features available there: rename elements by Ctrl(Cmd)+F6, find usages by Alt+F7, and enjoy completion for attribute names. For more information about XML support you can have, read this IntelliJ IDEA help page. DataGrip and IntelliJ IDEA share a common platform, everything described there will work in DataGrip just as well.

DefaultInjection

By default, there are only two predefined injection types: JSON and XML. However, it’s really simple to create your own injections: just press Alt+Enter and then select Inject By Type. There are many languages you can inject. Notice that quick search is available here.

CustomDATAInject

You will be offered to create a custom type pattern that simplifies the use of injections; for instance, you can configure it to inject XML into any type ending with DATA. You can use regular expressions to define the injection patterns. There’s RegExp assistance, too: Alt+Enter invokes the Check RegExp feature.

CheckRegexp

Your pattern will be added to the list in Settings/Preferences → Editor → Language Injections.

InjectionOptions

Since it’s possible to inject languages into any string in the SQL code, we can use Check RegExp if we’re inserting, for example, a value for the Visa card pattern.

Regexp

Did you see this the ‘was temporarily injected’ tooltip? If you want to have the injection whenever you edit a particular piece of code, comment it with “language=” like on the following screenshot. In it is another important example — the use of DynamicSQL that provides coding assistance for the injected fragment.

DynamicSQL

Table Editor

Completion for values in table is available via Ctrl+Space. It looks through all the values in the column and offers you a list of possible matches.  Remember, that if you need completion by used words in the editor (all open consoles), use Alt+/.

CompletionInTableEditor

Some improvements have been made in PostgreSQL: now you can modify different range types.

RangeEditing

And types with time zones.

TimeZonesEditing

We’ve added actions for resizing columns: use Ctrl(Cmd)+Shift+Left/Right  You can resize several columns at the same time. Ctrl(Cmd)+Shift+Up stands for the default size. Notice, that selection of the whole row was invoked by Shift+Space, like in Excel.

ColumnSize

Query Console

Just like any other IntelliJ-Platform-based IDE, DataGrip editor now officially supports fonts with programming ligatures. To enable ligatures, go to the Settings → Editor → Colors & Fonts → Font, specify a font that supports ligatures, e.g. FiraCode, Hasklig, Monoid or PragmataPro (the font has to be installed) and select the Enable font ligatures option.

EnableLigatures

And here you are!

Ligatures

A small enhancement for those who use many languages, IntelliJ-based IDEs including DataGrip now understand what you mean, even if you forgot to switch the language of input.

RussianCompletion

Surround action doesn’t ruin multi-carets anymore. Also, we’ve added surround with function which means that the caret will be placed before the brackets, not after: put the name of the function here. Notice, you can just type “bion” to put get_AuthorByIdOrName function.

SurroundByFunc

DataGrip now supports search path in PostgreSQL, meaning you can add schemas one by one in the switcher of the console. The console has a list of schemas to look in. If there are two tables with the same name in different schemas, the first one will be used. Thus, the order is important: move schemas in the search path with the mouse or Alt+Arrows.

SearchPath

Connectivity

We’ve added completion for database names in the connection dialog. Make sure you’re logged in to the server, and then press Ctrl(Cmd)+Space.

DatabaseCompletion

For those who had problems connecting to SQL Serverwe published a small tutorial covering the most common issues.

Recompile objects in Oracle

We’ve fixed some bugs in recompiling packages and added a way to recompile any DB object. Well, it has to be recompilable, of course, like procedures, views, types, triggers, etc. There is a possibility to recompile only invalid objects in the group, too.

RecompilePackages

Dumping Tables

Now you can dump multiple tables and even the entire schema, which means that any data (not only result-sets), can be exported to CSV, JSON or a list of INSERT/UPDATE statements.

DumpSchemas

We are working on dumping improvements with using of external tools like mysqldump and pg_dump. If you have thoughts or demands, please tweet at us or create feature requests in our issue tracker.

Background Images

A small new feature will help you make DataGrip look different: set any image as the background of your IDE. Add the folder with the picture to the Files panel, and then choose Set Background Image from the context menu. Or just choose Set Background Image from Find Action by Ctrl(Cmd) + Shift + A.

BackgroundImages

And that’s not all! A short list of other improvements:

  • Copying SSH and SSL settings  copies the password as well.
  • *.sql files are associated with DataGrip on Windows and also can be opened from the “Open with” context menu.
  • Fixed DBE-569: important bug with timed out connection on MySQL.
  • The Database tool window now provides the option Auto-scroll from Editor.
  • Eras support in Date types for PostgreSQL
  • If you use auto-completion, in case of identical names DataGrip will qualify the name of the object automatically.
  • Go to source works from the preview in Find in path.
  • Inserting the selected keyword in completion by “;” and “,” doesn’t insert a space anymore.
  • CTE support has been improved — we parse it even not finished.
  • Aggregate functions in ORDER BY are not highlighted as errors.
  • The same for PREVIOUS VALUE in DB2.
  • Test connection UI has been improved.

Now is the moment to try all this! Get your 30-day trial of DataGrip today if you haven’t before, or just test new features if you use DataGrip. And while you are trying 2016.2 we are already working on 2016.3 expected this fall. Stay in touch!

Your DataGrip Team

JetBrains
The Drive to Develop

The first minor update for DataGrip 2016.2

$
0
0

Hi! Thank you for your feedback about our 2016.2 release. In this minor update several important bugs are fixed:

DBE-2956: Columns became not visible at attempt to edit them
DBE-2612: Query results font is not increased in Presentation Mode 
DBE-2941: Cannot export query results to CSV or copy them to clipboard
DBE-2903: Release upgrade asks for the license

DBE-2917: Don’t replace types in PostgreSQL to equal ones
DBE-2909: Cannot handle PostgreSQL functions with default variadic parameters
DBE-2912DataGrip doesn’t save parameters for a function in PostgreSQL

Please update your version of DataGrip from Check For Updates… menu or just download a new version from our web-site. Please, keep reporting problems to us if there are any.

Your DataGrip Team
JetBrains
The Drive to Develop

 

DataGrip 2016.2.2 is Out

$
0
0

Hello! Another  minor update for 2016.2 release. Users experienced some problems with database synchronizing, we’ve fixed several bugs with this, but not only. The most important issues are:

We have fixed the bugs with freezing during the introspection.
DBE-2921DBE-2867

There was an error with incorrect results on the other pages of the result-set, we’ve fixed them.
DBE-3012DBE-3032

DataGrip doesn’t retry failed command  after detecting connection problems.
DBE-569

Schema comparing tool now understands if it needs to create the table or alter it.
DBE-2794

Fixed bug with Snowflake database introspection.
DBE-2935

Please update your version of DataGrip from Check For Updates… menu or just download a new version from our web-site. Please, keep reporting problems to us if there are any.

Your DataGrip Team
JetBrains
The Drive to Develop

DataGrip 2016.2.3: “Redshift shows all objects now” and other fixes.

$
0
0

Hello! We are thankful to the Amazon Redshift users for reporting the issue with DataGrip not showing the objects contained in schemas in the Database view – the problem has been fixed and we are delivering the new minor update as soon as we can.

redshift

Other important fixes of this update are:

Now DataGrip shows the correct number of rows if the PageSize parameter is set to 0.
DBE-3076

Exporting the result-set affects the whole set, not only one page.
DBE-3091

Fixed bug in comparing schemas with different names.
DBE-2328

The Flip intention action (did you know about it, by the way?) in functions has been fixed.
DBE-3105

flip

Update your version of DataGrip using the Check For Updates… menu or just download a new version from our web-site. Please, keep reporting problems to us if there are any.

Your DataGrip Team
JetBrains
The Drive to Develop

We open EAP for DataGrip 2016.3

$
0
0

Hello! As you know, there is a good tradition to let you try new product features before the official release, so today meet DataGrip 2106.3 Early Access Program.

intro

This version features integration with dump tools, several new inspections, the possibility to edit several fields at the same time, new completions, and many other enhancements. Let’s take a closer look at them:

Drivers

Now DataGrip detects if an old driver is in use and offers you to update it:

updatedrivers

Table Editor

Now you can edit several fields at once — just select them and begin to type. Of course, it works only if the columns you are editing are not unique and have the same type.

mordor-1

The familiar expand selection action by Ctrl+W (Alt+Up for OSX) now works in the data grid as well: first, a field is selected, then the column of the active field, then the row of the active field and finally, the whole grid.

dataselection

External dump tools integration

We integrated DataGrip with mysqldump and pg_dump. To dump the objects, use the Dump with… option from the context menu.

dumpcontext

This is what the dialogue window for MySQL looks like:

dumpmysql

And here is the one for PostgreSQL. Note that in both cases you can use completion for the console parameters.

dumppg

Code completion

Now if you use JOIN USING, DataGrip offers you only the field names common for both tables.

usingcompletion

The INSERT statement completion offers you not only the list of all fields but also the list of fields which have no default value.

insertnotdefault

Inspections

The IDE will warn you about the unused variable or parameter in the function.

unusedvar

Another inspection will let you know if there is a different number of columns in queries used in set operators (UNION, INTERSECT and EXCEPT).

unioninspection

Introspect missing schemas and databases

The new intention action offers you to introspect the schema or databases right from the editor if DataGrip has no metadata on them yet.

instrospectmissing

Find usages in PostgreSQL

Find Usages now handles positional parameters references in PostgreSQL: $1 will be treated as the first parameter’s usage and so on.

usagesofbucks

FiraCode font

All IntelliJ-based products bundle FiraCode font so you can use it to have ligatures in your code.

firacode

Other enhancements

  • SQL Server 2016 grammar support
  • External tables parsing in Oracle
  • Better operators parsing in PostgreSQL
  • SELF resolving in Oracle

That’s it! Your feedback is welcome in our twitter, forum and the issue tracker. Let us know what you think about 2016.3!

Your DataGrip Team
_
JetBrains
The Drive to Develop

Viewing all 267 articles
Browse latest View live