goqu
goqu copied to clipboard
SQL builder and query library for golang
Hi there, We've recently observed an interesting point through one of our security analysis tools. It appears that goqu hasn't seen updates for about 18 months, and it seems the...
**Is your feature request related to a problem? Please describe.** I'm trying to form a query which involves support for USE INDEX clause in SQL - for providing hints to...
This might be more a question rather than a bug or feature request. I have an scenario where I have a struct with 3 pointers like: ```golang type MyStruct struct...
``` x.Where(goqu.I("mime").NotLike(`ALL(ARRAY("image/%", "audio/%", "video/%"))`)) ```
**Describe the bug** I'm currently trying to insert a list of email into my database, but the query that It produce does not complies to what postgres expected. Are there...
``` dialect := goqu.Dialect("mysql") query, _, _ := dialect.From("articles"). Select("id", "title", "content", "created_at", "updated_at"). Order(goqu.I("a").Asc()). Limit(uint(req.PerPage)). Offset(uint(req.Page)). ToSQL() print(query) ``` The problem is here `goqu.I("a").Asc()` I want `Order(OrderBy + "...
I have a somewhat stupid question. I want to parse some SQL query (just SELECT) and do some checks (simple transformation) and re-emit vendor specific dialect. i was thinking maybe...
**Describe the bug** `WithDialect` changes the dialect of the receiver dataset, but datasets of CTEs inside it keep the default dialect (unless specified explicitly). The resulting query contains multiple incompatible...
Dear all, Is there a tag like `omitempty` in json package to ignore non-existing SQL columns and use zero value instead? For example ``` type MyTable struct { OTPEnabled bool...