fraenky8 / tables-to-go

convert your database tables to structs easily
MIT License
233 stars 42 forks source link

can you support sqlite? #22

Closed chen56 closed 4 years ago

chen56 commented 5 years ago

i already use tabbles-to-go with myql, so thanks , , now i want use it with sqlite ,can you support it?

https://github.com/mattn/go-sqlite3

fraenky8 commented 5 years ago

Hi @chen56 can you checkout #23 and take a look if that works for you? The new type is sqlite3 and the database points to the file (didnt checked in-memory yet):

./tables-to-go -vv -t sqlite3 -d sqlite/ttg-sqlite.db

The PR is still WIP but I testes it already locally and it seems to work for my basic examples.