QM is not useful for queries like this? #1397
-
The qm package docs is so poorly written without any examples that no developer can understand how to actually build a query using that without lots of trials! I was trying to write this query using qm but I don't think qm is possible! I have no idea how the inner Joins function is working! Even there is also no text in docs that explains that! So I endup with this (any help to convert it using qm is appreciatable) but now the problem is its not accepting the struct as params):
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
What driver are you using for these named args? It looks like SQLite to me. The issue is not with SQLBoiler, but with how you're passing named args. This line: rows, err := exec.QueryContext(ctx, sql, params) Should be: rows, err := exec.QueryContext(
ctx, SQL,
sql.Named("shopId", params.ShopID),
sql.Named("tagList", params.TagList),
// and so on....
) |
Beta Was this translation helpful? Give feedback.
What driver are you using for these named args? It looks like SQLite to me.
The issue is not with SQLBoiler, but with how you're passing named args. This line:
Should be: