remove ';' from queries
This commit is contained in:
parent
6b5bfcd144
commit
613d901bca
5 changed files with 77 additions and 78 deletions
|
|
@ -18,7 +18,7 @@ module Db =
|
|||
|
||||
let () =
|
||||
let set_foreign_keys_on =
|
||||
(Caqti_type.unit ->. Caqti_type.unit) "PRAGMA foreign_keys = ON;"
|
||||
(Caqti_type.unit ->. Caqti_type.unit) "PRAGMA foreign_keys = ON"
|
||||
in
|
||||
if Result.is_error (Db.exec set_foreign_keys_on ()) then
|
||||
Dream.error (fun log -> log "can't set foreign_keys on")
|
||||
|
|
@ -27,7 +27,7 @@ let () =
|
|||
let query =
|
||||
(Caqti_type.unit ->. Caqti_type.unit)
|
||||
"CREATE TABLE IF NOT EXISTS dream_session (id TEXT PRIMARY KEY, label \
|
||||
TEXT NOT NULL, expires_at REAL NOT NULL, payload TEXT NOT NULL);"
|
||||
TEXT NOT NULL, expires_at REAL NOT NULL, payload TEXT NOT NULL)"
|
||||
in
|
||||
match Db.exec query () with
|
||||
| Ok () -> ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue