Replies: 1 comment
-
So far, I achieved it like this: r := models.Range[[]any, models.BoundIncluded[[]any], models.BoundIncluded[[]any]]{
Begin: &models.BoundIncluded[[]any]{
Value: []any{
userid, 0,
},
},
End: &models.BoundIncluded[[]any]{
Value: []any{
userid, math.MaxInt64,
},
},
}
params := map[string]any{
"tb": models.Table(accounts_table),
"recrng": r,
}
sdb.Query[[]Account](context.TODO(), db, "select * from type::thing($tb, $recrng)", params) Which is very far from ideal, and I'm not sure how to improve it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a query like this:
SELECT * FROM temp:['London',NONE]..=['London',..]
. How do I perform it using Go driver types?Beta Was this translation helpful? Give feedback.
All reactions