Araq / ormin

Ormin -- An ORM for Nim.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: expected: ')', but got: 'keyword not'`

kidandcat opened this issue · comments

I get this error running the Chat example:

chat_model.sql(3, 23) Error: expected: ')', but got: 'keyword not'

The SQL is exactly the same as the example:

create table if not exists users(
  id integer primary key,
  name varchar(20) not null,
  password varchar(32) not null,
  creation timestamp not null default (DATETIME('now')),
  lastOnline timestamp not null default (DATETIME('now'))
);

/* Names need to be unique: */
create unique index if not exists UserNameIx on users(name);

create table if not exists messages(
  id integer primary key,
  author integer not null,
  content varchar(1000) not null,
  creation timestamp not null default (DATETIME('now')),

  foreign key (author) references users(id)
);
Nim Compiler Version 1.0.99 [Windows: amd64]
Compiled at 2019-10-18
Copyright (c) 2006-2019 by Andreas Rumpf

git hash: 832b0a0232e610c1935aaf6ce0b45f69199f8a19
active boot switches: -d:release

Ok, didn't noticed the need of using ormin_importer