stephenafamo / bob

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

Load index information from Atlas schema files #239

Closed mbezhanov closed 2 weeks ago

mbezhanov commented 2 weeks ago

Continuing what I started in #237, this PR adds proper support for loading index information from Atlas schema files.

I wanted to do the Atlas and Prisma driver modifications together, but the Atlas implementation took a bit longer than I anticipated.

I had to update the original schema.hcl files, as they had some small issues preventing the atlas CLI from executing them against real MySQL, PostgreSQL, and SQLite databases (now it works).

All questions and comments are welcome.