Feat/export sql script
Proposed features
This is a first draft how to implement https://github.com/azerothcore/Keira3/issues/401
I created a rudimentary export functionality, I created a PR already as I'm open to more input/suggestions/requirements. At the moment, this only works for the creature_template editor.
To test it, enter a path to a (non)existing SQL file in the new textbox in the dashboard:
On Unix systems you have to manually edit the path in the textbox for now as I used the \ character
I created a new service for handling the functionality as it may can be used later for other features.
Ideas
- Implement https://github.com/azerothcore/Keira3/issues/741
- Directly run the bash script from AC to create a new SQL update file
- Maybe this can be used for https://github.com/azerothcore/Keira3/issues/1086
Thanks for your PR, I don't know if you will take care of the unit test of your service but they are really important to do for the Keira3 project.
Moreover, is the path can be chosen when the user clicks on "save to SQL"? and is there a way to easily choose a path and make it as default without writing it?
Thanks for your PR, I don't know if you will take care of the unit test of your service but they are really important to do for the Keira3 project.
It's basically a WIP at the moment, I only already opened the PR to get early feedback on what is needed/wished. I'll do unit tests for sure.
Moreover, is the path can be chosen when the user clicks on "save to SQL"? and is there a way to easily choose a path and make it as default without writing it? I want to change the textbox in the dashboard so that you can open a "file explorer dialog" as electron already provides this feature. As for having a default path, that would be a good idea.
closing as it looks like abandoned