Reconnect to session

Using the Database plugin in WebStorm: I have a number of sql files mapped as the DDLs to a Postgres database.

Whenever I reopen the IDE, I must manually select the session and choose the schema for every file I continue to work on.

Is there a way to persist the data sources for DDL files? Couldn't find a property to enable this.

Thanks!

0
4 comments

How did you mapped your files? Is it via DDL Mapping? If it is, could you share screenshots?

0

Sure, here are some screenshots.

My issue is this: whenever opening a file that I previously connected to a session, I need to select a session again. It would save tedious work when working with many such sql files if such a session was reconnected, in order to avoid warnings/errors that are just the result of a connection that simply hasn't been reestablished. I understand that might not be desirable for everyone, but an option to reconnect the default data source would be great. (Unless I've been doing something wrong here...)

1

I have the same requirement. In a recent previous version this was the behavior I think

0

Bernd Matzner

We have a feature request to leverage custom search path and, thereby, attach SQL files to certain scopes in advance 

https://youtrack.jetbrains.com/issue/DBE-16493/Support-resolve-from-custom-search-path-either-via-settings-or-use-CURRENTCONFIG

Please feel free to upvote so it can get more attention.

0

Please sign in to leave a comment.