Hello! My first encounter with Lwt is by using ppx_rapper_lwt (even first encounter with a monadic pattern to conform to) and I lack something which will probably looks trivial to you: a connection (db handler) creation and use example! a non pooled one, because I'm using sqlite3. I know, I know, shame on me, I'm an eternal beginner with ocaml.
Also, is the Db handler always a whole module or is there a lighter alternative?
Hi, I've added an example of that to the examples. The connection is a caqti thing, not ppx_rapper, so you'll probably find the caqti docs more useful.
Hello! My first encounter with Lwt is by using ppx_rapper_lwt (even first encounter with a monadic pattern to conform to) and I lack something which will probably looks trivial to you: a connection (db handler) creation and use example! a non pooled one, because I'm using sqlite3. I know, I know, shame on me, I'm an eternal beginner with ocaml.
Also, is the Db handler always a whole module or is there a lighter alternative?
Thank U!