Open bilelmoussaoui opened 5 years ago
Exporting the connections to a JSON file would be great, I was thinking about it but never got the time to implement it. I will work on this during the holidays probably, and use the occasion to implement also an encryption feature to the saved connections.
Currently,
When I try to import saved connection, I can select whatever file type I want which creates an empty database on the sidebar and saves the content of the file on the
saved-connections
array.I think the best way to handle this is to save the files as a specific mimetype with a specific extension, something like
ssc
for Sequeler Saved connections?Otherwise, you can just check the file content and make sure the file the user trying to import has some valid content on it. You could use JSON for this case to avoid making your life harder.