How can I load or run multiple SQL files in Datagrip?

冷暖自知 提交于 2019-12-22 07:02:33

问题


I have set up a project in DataGrip with several sql files spread over a couple of directories like this:

My hope is to manage the complexity as this turns into hundreds of files. This is a learning/proof of concept level effort right now.

What I want to do is have a way to run/build/publish this project but at present the best I have found is to select the files and then do a "Run Files" CTRL+SHIFT+F10. This worked for a bit but now I have a foreign key that gets run in the wrong order. I don't want to have to make a hack like prefixing the file names with integers to force a specific order. It feels like a real kludge.

How should I accomplish this, I must have missed something since the alternative is very manual and error prone. If it matters the database I am working against is Oracle.

来源:https://stackoverflow.com/questions/43379267/how-can-i-load-or-run-multiple-sql-files-in-datagrip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!