Writing a Query

In PopSQL, writing a query is easy, and there are a few ways to create and run your query.

Using the New Query button

Press the New Query button in the top left:

Screenshot of the New Query button

The keyboard shortcut for this is Cmd+N on macOS, or Ctrl+N on Windows/Linux.

Don’t forget to name your query!

Creating a query within a folder

Right click on a folder and click New Query:

Screenshot of the New Query button within a folder

If you do this within a shared folder, your query permissions will default to Query can be viewed by your team.

Multiple statements in one query

If you have multiple statements in one query separated by a semicolon, PopSQL will run the statement where your cursor is.

GIF of having multiple statements in one query

You can also highlight part of your query and PopSQL will run that part only.

Running your query

Finally, to run your query, hit Cmd+Enter on macOS, or Ctrl+Enter on Windows/Linux, or hit the green Run button in the top right of the app.