This commit is contained in:
parent
98da556632
commit
70ce0aeb8f
1 changed files with 2 additions and 0 deletions
|
|
@ -91,6 +91,8 @@ let () =
|
||||||
Caqti_miou.Switch.run @@ fun sw ->
|
Caqti_miou.Switch.run @@ fun sw ->
|
||||||
let db_conn =
|
let db_conn =
|
||||||
let db_uri = Config.Exchangedb_postgres.config in
|
let db_uri = Config.Exchangedb_postgres.config in
|
||||||
|
(* IMPROVE: use caqti pool
|
||||||
|
[connect_pool] with parameter [?post_connect] for preflight *)
|
||||||
match Caqti_mnet.connect ~sw stack tcp dns db_uri with
|
match Caqti_mnet.connect ~sw stack tcp dns db_uri with
|
||||||
| Error err ->
|
| Error err ->
|
||||||
Fmt.failwith "Database connection failure: %a." Caqti_error.pp err
|
Fmt.failwith "Database connection failure: %a." Caqti_error.pp err
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue