import std/envvars,
std/strutils,
std/os,
norm/[model,postgres]
var
DB_PASS = getEnv("DB_PASSWORD")
DB_USER = getEnv("DB_USER")
DB_HOST = getEnv("DB_HOST")
DB_NAME = getEnv("DB_NAME")
type users* = ref object of Model
user: string
uuid: string
func newUser*(user: string = "",uuid: string = ""): users =
users(user: user,uuid: uuid)
proc main() =
let remoteState = postgres.open(DB_HOST, DB_USER, DB_PASS, DB_NAME)
var test = newUser()
remoteState.select(test, "users.id = ?", 454)