ppx_rapper icon indicating copy to clipboard operation
ppx_rapper copied to clipboard

more examples of connection creation, please!

Open phstrauss opened this issue 2 years ago • 1 comments

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!

phstrauss avatar Jun 28 '22 20:06 phstrauss

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.

roddyyaga avatar Jun 29 '22 11:06 roddyyaga