You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Required Functionality
I use sqlite in some projects and would like to be able to use synth in these projects as well.
Something like this is what I am looking for:
synth import gen --from sqlite://real.db3
synth generate gen --to sqlite://generated.db3
Proposed Solution
I think this can be done by leveraging the already existing sqlite support in sqlx.
I did a very rough implementation here: rasviitanen@938976b to show that it requires a minimal effort.
Obviously the implementation needs cleaning up (I copied the MySql implementation and tweaked it until import/generate worked for the db I have). But it shows a rough idea about how this could be implemented.
If you are interested I would be happy to spend some more time on this and make a more refined implementation. But I understand if you dont want to add extra complexity by introducing another db at this stage.
Use case
I have a bunch of very complex sqlite-files with real user data. I want to be able to generate files similar to these by using synth.
The text was updated successfully, but these errors were encountered:
Hey @rasviitanen ! I looked at the linked commit and it looks great!
SQLite support is very much on the roadmap, so it's great that you're working on an implementation - if you are interested in seeing it all the way through I'd be more than happy to merge it. If you need any help please do let me know.
I'll assign you on this one. Really excited to get this merged in!
@christoshadjiaslanis Hey, thanks for asking. I have been incredibly busy since I posted this, but I have started to look at this again and will try to wrap it up during the weekend. Hopefully the next update is a PR, otherwise I'll let you know what the status is.
Required Functionality
I use sqlite in some projects and would like to be able to use synth in these projects as well.
Something like this is what I am looking for:
Proposed Solution
I think this can be done by leveraging the already existing sqlite support in
sqlx
.I did a very rough implementation here: rasviitanen@938976b to show that it requires a minimal effort.
Obviously the implementation needs cleaning up (I copied the MySql implementation and tweaked it until import/generate worked for the db I have). But it shows a rough idea about how this could be implemented.
If you are interested I would be happy to spend some more time on this and make a more refined implementation. But I understand if you dont want to add extra complexity by introducing another db at this stage.
Use case
I have a bunch of very complex sqlite-files with real user data. I want to be able to generate files similar to these by using synth.
The text was updated successfully, but these errors were encountered: