Skip to content

What is the type of T in sql<T> ? #575

Discussion options

You must be logged in to vote

It's just a helper for the drizzle to get the right to infer type from the database. When using raw sql tag there is no way to know which type exactly will be returned from the database(as long as you can write there is any valid sql), so you need to specify it manually

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@AndriiSherman
Comment options

Answer selected by Senbonzakura1234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants