Skip to content

Instantly share code, notes, and snippets.

@BitPuffin
Created February 21, 2014 14:14
Show Gist options
  • Save BitPuffin/9135002 to your computer and use it in GitHub Desktop.
Save BitPuffin/9135002 to your computer and use it in GitHub Desktop.
proc setup*(db: TDbConn) =
db.Exec(sql("""
create table if not exists $#(
id $#,
email $# unique not null,
password $#,
username $# unique not null,
firstname $# not null,
lastname $# not null
)
""" % [tableName, TId, TEmail, TPassword, TUserName, TFirstName, TLastName]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment