techouse / mysql-to-sqlite3

Transfer data from MySQL to SQLite
https://techouse.github.io/mysql-to-sqlite3/
MIT License
218 stars 31 forks source link

stop creating tables for views and instead create view for them #63

Open dethrophes opened 11 months ago

dethrophes commented 11 months ago

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.

techouse commented 11 months ago

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 commented 7 months ago

@dethrophes any more progress on this?