在DataGrip JetBrains中切换PostgreSQL数据库或架构

Ham*_*oui 3 mysql database ide postgresql datagrip

是否有人知道如何在控制台的DataGrip (JetBrains的数据库IDE)中的PostgreSQL数据库或模式之间切换?

我可以使用以下方法在Mysql中做到这一点:

Use my_database;
Run Code Online (Sandbox Code Playgroud)

我尝试使用类似的Psql方法

\连接

要么

\C

但没有任何效果。

并且在DataGrip帮助页面中找不到任何内容。

mos*_*cas 6

If you speaking about the code, use SET search_path TO my_schema, public;

If you speaking about the tool, DataGrip, use switcher:

在此处输入图片说明