🔎 SQLi – I've released the most flexible and type-safe Query Builder for Go 🔎
https://github.com/Dionid/sqli
In every Query Builder/ORM, I always expected at least 4 key features:
- Extract database constants (schema names, tables, columns, etc.)
- Extract table types
- Generate type-safe functions for Insert, Update, and Delete (which look identical in every project)
- Generate a type-safe way to write dynamic SQL queries
I haven't seen anything on the market that solves all these issues—maybe except kysely.js, but it relies too heavily on TS string literals, making it hard to replicate in most other languages.
But I found a way to solve this and created the SQLi library, which addresses all these points (currently for Go).
Check it out, give it a try, share your feedback, and may everyone level up their skills! 🦾
#db #sql #orm #go