mysql-to-sqlite3 icon indicating copy to clipboard operation
mysql-to-sqlite3 copied to clipboard

stop creating tables for views and instead create view for them

Open dethrophes opened this issue 6 months ago • 2 comments

I'm neither a python nor SQL person. Having said that I find it a bit weird that currently the script is creating a real table for all the views and then populating the views with the data. Which much be exploding the db size, if you use views in sqlite3?

So here I added a hacky approach to instead just create a view for the views.

Not saying this is finished, just providing for feedback. It seems to work at least for me in my limited testing.

Cheers.

dethrophes avatar Dec 31 '23 22:12 dethrophes

The thought of supporting views never crossed my mind. It will sure be good addition.

Please make sure to add unit tests for this.

techouse avatar Jan 01 '24 08:01 techouse

@dethrophes any more progress on this?

techouse avatar Apr 18 '24 07:04 techouse