Replies: 1 comment 4 replies
-
What issue did you run into when passing the extra argument to |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to write a write a query bit execute_raw returns an int and query_raw does not seem to accept placeholders. how do I do it?
This returns an int
total = await db.execute_raw( ''' SELECT * FROM User WHERE User.id = ? ''', 'cksca3xm80035f08zjonuubik' )
And I don't know how to safly query, i.e with placeholders with this. Giving the User.id as an extra argument doesn't work
posts = await db.query_raw( ''' SELECT * FROM User WHERE User.id = ? ''' )
Beta Was this translation helpful? Give feedback.
All reactions