stephenafamo / bob

SQL query builder and ORM/Factory generator for Go with support for PostgreSQL, MySQL and SQLite
https://bob.stephenafamo.com
MIT License
799 stars 41 forks source link

Add libSQL support to SQLite generator #304

Open plunkettscott opened 16 hours ago

plunkettscott commented 16 hours ago

In v0.29.0 you removed support for Atlas, which was allowing us to use Bob with libSQL/Turso (a database not directly supported by Bob). Since Bob is now focused on each database implementation, rather than schema tooling, supporting libSQL would allow us to use the generator directly on our database. To get around the removal in v0.29.0 we have to export our schema from libSQL to a local file to be read by Bob, which works, but adds unnecessary steps to generating code.

The libSQL project is a fork of SQLite, so nothing aside from the driver should need to change to support libSQL. The dialects are identical from a schema perspective.

stephenafamo commented 8 hours ago

I'll look into this