hasql 1.7 → 1.7.0.1
raw patch · 3 files changed
+19/−14 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- README.md +2/−2
- hasql.cabal +16/−9
- library/Hasql/Pipeline/Core.hs +1/−3
README.md view
@@ -1,4 +1,4 @@-# Summary+# Fast PostgreSQL driver for Haskell with a flexible mapping API Hasql is a highly efficient PostgreSQL driver for Haskell with a typesafe yet flexible mapping API. It targets both the users, who need maximum control, and the users who face the typical tasks of DB-powered applications, providing them with higher-level APIs. Currently it is known to be [the fastest driver](https://nikita-volkov.github.io/hasql-benchmarks/) in the Haskell ecosystem. @@ -7,7 +7,7 @@ # Status -[](https://hackage.haskell.org/package/hasql)+[](https://hackage.haskell.org/package/hasql) [](http://packdeps.haskellers.com/reverse/hasql) Hasql is production-ready, actively maintained and the API is pretty stable. It's used by many companies and most notably by the [Postgrest](https://postgrest.org/) project.
hasql.cabal view
@@ -1,18 +1,25 @@ cabal-version: 3.0 name: hasql-version: 1.7+version: 1.7.0.1 category: Hasql, Database, PostgreSQL-synopsis: An efficient PostgreSQL driver with a flexible mapping API+synopsis: Fast PostgreSQL driver with a flexible mapping API description: Root of the \"hasql\" ecosystem.- For details and tutorials see- <https://github.com/nikita-volkov/hasql the readme>.- The API comes free from all kinds of exceptions. All error-reporting is explicit and is presented using the 'Either' type.+ This library provides connection management, execution of queries and mapping of parameters and results.+ Extended functionality such as pooling, transactions and compile-time checking is provided by extension libraries.+ For more details and tutorials see <https://github.com/nikita-volkov/hasql the readme>. - This library requires to have the \"libpq\" library installed on the running system.- It comes distributed with PostgreSQL.- To be able to use the \"Pipeline\" feature you'll need \"libpq\" of version >14.- This feature does not however put any requirements on the version of the PostgreSQL server.+ The API comes free from all kinds of exceptions.+ All error-reporting is explicit and is presented using the 'Either' type.++ \"hasql\" requires you to have the "\libpq\" C-library installed to compile.+ Starting from version 1.7 of \"hasql\" it requires \"libpq\" of at least version 14.+ \"libpq\" comes distributed with PostgreSQL,+ so typically all you need is just to install the latest PostgreSQL distro.++ Despite the mentioned requirements for \"libpq\" \"hasql\" is compatible+ with a wide range of PostgreSQL servers with tests having been conducted starting from+ version 8.3. homepage: https://github.com/nikita-volkov/hasql bug-reports: https://github.com/nikita-volkov/hasql/issues
library/Hasql/Pipeline/Core.hs view
@@ -70,8 +70,6 @@ -- -- To execute 'Pipeline' lift it into 'Hasql.Session.Session' via 'Hasql.Session.pipeline'. ----- __Attention__: using this feature requires \"libpq\" of version >14.--- -- == __Examples__ -- -- === Insert-Many or Batch-Insert@@ -91,7 +89,7 @@ -- insertOrders :: [OrderDetails] -> 'Hasql.Session.Session' [OrderId] -- insertOrders songs = -- 'Hasql.Session.pipeline' $--- forM songs $ \song ->+-- forM songs $ \\song -> -- 'Hasql.Pipeline.statement' song Statements.insertOrder -- @ --