But you can add more consoles to a data source, each of them will then create a new connection, unless that is, you use Single Connection Mode.Ģ. When you create a data source, a database console is created automatically. Query console is an SQL editor attached to a particular data source. There are four types of files where you can write SQL in DataGrip:ġ. You might already have a working directory with tons of scripts we will tell you how you can use DataGrip to deal with them too. In this post, we’ll go over whether it’s better to just use a temporary SQL editor in DataGrip or if it’s more convenient to work directly with SQL files stored on your computer.