asilvestre / haskell-neo4j-rest-client

Haskell neo4j REST client
MIT License
25 stars 7 forks source link

Use with `resource-pool`? #29

Open twopoint718 opened 7 years ago

twopoint718 commented 7 years ago

I'm using version 0.3.2.2 and am wondering about opening a DB connection using newSecureAuthConnection in combination with the resource pool package. That package has a function:

createPool
:: IO a          -- acquire resource (open connection, e.g. "newSecureAuthConnection")
-> (a -> IO ())  -- close connection
-- ... other args...
-> IO (Pool a)

which manages the lifecycle of a pooled resource/connection. I was wondering if you had any advice on how to combine this and the Neo4j library. Or is there a different workflow that you've used?

Thanks!