-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
I needed to add this to db_mysql.nim to make it work:
proc sql*(query: string): TSqlQuery {.noSideEffect, inline.} =
## constructs a TSqlQuery from the string `query`. This is supposed to be
## used as a raw-string-literal modifier:
## ``sql"update user set counter = counter + 1"``
##
## If assertions are turned off, it does nothing. If assertions are turned
## on, later versions will check the string for valid syntax.
result = TSqlQuery(query)
FGFW