Recently open sourced gosql golang orm library with golang style syntax.
Elegant syntax, support batch insertion, easily nested conditions, handle various complex query SQL, such as: and , or combination
Full syntax support: for update lock, is null, exists subquery, etc. Basically all SQL syntax
The SQL builder style looks quite strange. How is the Go code in the example any easier to read then the SQL? The same can be said for the conditional expressions. Why not just write SQL?
Thanks for reading, usually when writing native SQL, you will find some problems:
The placeholder for the βinβ condition needs to be determined according to the parameters
The number of where conditions is not easy to determine