remove ';' from queries

This commit is contained in:
Swrup 2022-04-04 21:15:04 +02:00
parent 6b5bfcd144
commit 613d901bca
5 changed files with 77 additions and 78 deletions

View file

@ -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 () -> ()