hocilib VS pool-conduit

Compare hocilib vs pool-conduit and see what are their differences.

hocilib

A lightweight Haskell binding to the OCILIB C API (by fpinsight)

pool-conduit

Persistence interface for Haskell allowing multiple storage methods. (by yesodweb)
Our great sponsors
  • talent.io - Download talent.io’s Tech Salary Report
  • Scout APM - Less time debugging, more time building
  • SonarLint - Clean code begins in your IDE with SonarLint
hocilib pool-conduit
0 8
2 427
- 0.9%
0.0 8.0
almost 5 years ago 13 days ago
Haskell Haskell
BSD 3-clause "New" or "Revised" License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

hocilib

Posts with mentions or reviews of hocilib. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning hocilib yet.
Tracking mentions began in Dec 2020.

pool-conduit

Posts with mentions or reviews of pool-conduit. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-06.
  • Was simplified subsumption worth it for industry Haskell programmers?
    6 projects | reddit.com/r/haskell | 6 May 2022
    I don't think there's any malicious intent. It seems pretty clear that the motivation here is to simplify the type checker considerably, which is a really good reason to do something. Heck, I've got an open issue for deleting a feature in persistent which (according to the lack of comments on the issue) only ever used by persistent's own test suite.
  • [ANNOUNCE] GHC 9.2.2 is now available!
    4 projects | reddit.com/r/haskell | 7 Mar 2022
    PR submitted: https://github.com/yesodweb/persistent/pull/1366 :)
  • Simple Servant + Persistent + Katip template for starting a new project
    5 projects | reddit.com/r/haskell | 19 Jan 2022
  • Async Control Flow
    7 projects | reddit.com/r/haskell | 21 Mar 2021
    Ha, I spotted a possible resource leak here. If stmtFinalize fail, then the connection won't be closed.
    7 projects | reddit.com/r/haskell | 21 Mar 2021
    Hmm, you are right, the bracket I pointed to is unrelated. I guess the fix is in catchAny, which doesn't catch ThreadKilled. So not it's not rolling the transaction back in case of asynchronous exceptions. My point is that it probably should not rollback even on synchronous exception. BTW the issue is well know, see for example here
    7 projects | reddit.com/r/haskell | 21 Mar 2021
    https://github.com/yesodweb/persistent/blob/f69716dcfeca01896ec42dec874393fbe60d3939/persistent/Database/Persist/Sql/Run.hs#L212
    7 projects | reddit.com/r/haskell | 21 Mar 2021
    I don't think connection is returned to the pool here. The thread is interrupted when query is sent to server, but before the results are consumed. At that point cleanup action catches `ThreadKilled` exceptions and issues `ROLLBACK`, which fails with `libpg` exception because the previous operations was not completed. And now cleanup action rethrows the `libpg` exception instead of the `ThreadKilled` one - that's the behavior of `bracket` from `base`. [The fix](https://github.com/yesodweb/persistent/pull/1207/files#diff-f9d7f232cd00cb88188b7fcc68110e3f4cb378fcad9df652360de44d13cd86e3R199) was to use `bracket` from `unliftio`, which [rethrows the correct exception](https://hackage.haskell.org/package/unliftio-0.2.14/docs/src/UnliftIO.Exception.html#bracket).

What are some alternatives?

When comparing hocilib and pool-conduit you can also consider the following projects:

persistent-odbc - uses persistent connecting via hdbc odbc

selda - A type-safe, high-level SQL library for Haskell

HongoDB - A Simple Key Value Store

beam - A type-safe, non-TH Haskell SQL library and ORM

mongoDB - MongoDB driver for Haskell

bloodhound - Haskell Elasticsearch client and query DSL

ampersand - Build database applications faster than anyone else, and keep your data pollution free as a bonus.

lmdb - Lightning MDB bindings for Haskell

persistent-relational-record - Persistent adapter for Haskell Relational Record

groundhog - This library maps datatypes to a relational model, in a way similar to what ORM libraries do in OOP. See the tutorial https://www.schoolofhaskell.com/user/lykahb/groundhog for introduction

hedis - A Redis client library for Haskell.

HDBC - Haskell Database Connectivity