You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{sql}from"./database.js";constquery=sql`SELECT * FROM users WHERE id = ${1}`console.log(awaitquery.describe())console.log(awaitquery.execute())awaitsql.end()
Hi,
I expected this to show the describe and then the results but it shows the describe twice. Is this intended behaviour and is there a way to do what I want?
In particular I would love this to be as efficient as possible as I want to use this to add dynamic typescript to it. I don't know how the describe works internally or if that information is there anyways so it would have no overhead.
Activity
[-][v3] sql`...`.describe() doesn't work as expected[/-][+][v3] .describe() doesn't work as expected[/+]mohe2015 commentedon Mar 13, 2022
In particular I would love this to be as efficient as possible as I want to use this to add dynamic typescript to it. I don't know how the describe works internally or if that information is there anyways so it would have no overhead.
mohe2015 commentedon Mar 13, 2022
Independent from this issue my idea is the following and I may create a PR once it's ready: