Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DBeaver How to Save Export Data Script

Tags:

export

dbeaver

DBeaver has excellent Import data/Export data tools, but is it possible to Save the export or import script rather than execute it immediately so that it can be executed at a later time?

I need to migrate a production database so I want to prepare all of the scripts beforehand and then execute them all when it's time to do the switch.

like image 879
isapir Avatar asked Sep 12 '25 11:09

isapir


2 Answers

You can save your scripts from menu [SQL editor]->[Save SQL script].

Then in project panel you can create link on folder that contains your saved scripts or on script itself.

Also there is a Script Management guide on DBreaver Git wiki.

like image 104
Ivan Baranuk Avatar answered Sep 16 '25 02:09

Ivan Baranuk


The file that contains all dBeaver tasks is a JSON file.

On my computer, it's located in

C:\Users\fred\AppData\Roaming\DBeaverData\workspace6\General\.dbeaver\tasks.json
like image 29
Fred Avatar answered Sep 16 '25 00:09

Fred