Procs
proc dbFormat(formatstr: string; args: varargs[string]): string {....raises: [], tags: [], forbids: [].}
proc dbFormat(queryString: string; args: JsonNode): string {. ...raises: [ValueError], tags: [], forbids: [].}
proc numToAlphabet(n: int): string {....raises: [], tags: [], forbids: [].}
- 1 => "a", 26 => "z", 27 => "aa", 28 => "ab", 52 => "az", 53 => "ba"
proc questionToDaller(s: string): string {....raises: [ValueError], tags: [], forbids: [].}
-
from UPDATE user SET name = ?, email = ? WHERE id = ?
to UPDATE user SET name = $a, email = $b WHERE id = $c