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
Currently, almost any structs, especially dialect depends on driver string. However, it seems it doesn't have to be that way.
Query struct would keep the placeholders in named statements. Only SQL() function should have driver dependency. Moreover, SQL() function should convert the named placeholders into native placeholders.
The text was updated successfully, but these errors were encountered:
Named placeholder would not be necessary. Just putting "?" will be enough. For postgres, SQL(driver string) function should replace the "?" into binding indexed $%d. It looks like a ugly hack but is solves the current problem.
Currently, almost any structs, especially dialect depends on
driver string
. However, it seems it doesn't have to be that way.Query
struct would keep the placeholders in named statements. OnlySQL()
function should have driver dependency. Moreover,SQL()
function should convert the named placeholders into native placeholders.The text was updated successfully, but these errors were encountered: