Skip to content

Instantly share code, notes, and snippets.

@BitPuffin
Created November 8, 2013 23:40
Show Gist options
  • Save BitPuffin/7379399 to your computer and use it in GitHub Desktop.
Save BitPuffin/7379399 to your computer and use it in GitHub Desktop.
db.Exec(sql"""
create table if not exists user(
id $,
email $,
username $,
first_name $,
last_name $,
admin bool default false
)
""" % [TId, TEmail, TUserName, TFirstName, TLastName], [])
Hint: used config file '/home/isak/src/softlib/Nimrod/config/nimrod.cfg' [Conf]
Hint: system [Processing]
Hint: mkdb [Processing]
Hint: db_sqlite [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: sqlite3 [Processing]
mkdb.nim(30, 4) Error: type mismatch: got (TSqlQuery, Array constructor[0..4, string])
but expected one of:
strutils.%(formatstr: string, a: string): string
strutils.%(formatstr: string, a: openarray[string]): string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment