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
I usually get around this with aliasing const _sql = sql, does that work? It might be tricky coming up with a reliable way to tell if a type is generated or hand-written.
What's the advantage of that over aliasing sql? To be clear, the disadvantages in my mind are: steeper learning curve, more magic, less intuitive usage, more complex implementation.
If the only rule a user needs to remember is ”slonik-typegen affects sql" then the escape hatch follows naturally.
Related to this:
#362
I want to override types for a specific query.
Expected
I expect that if I provide a custom type to
sql
tagged template, then thentypegen
won't override it.Actual
typegen
always overridessql
types.The text was updated successfully, but these errors were encountered: