packages feed

hasql 1.10 → 1.10.1

raw patch · 4 files changed

+17/−1 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Hasql.Statement: toSql :: Statement params result -> Text

Files

README.md view
@@ -13,6 +13,16 @@  Hasql is production-ready, actively maintained and the API is moderately stable. It's used by many companies and most notably by the [Postgrest](https://github.com/PostgREST/postgrest) project. +# Support Policy++This policy is intended to balance stability for users with the ability to evolve the library.++Each major release of Hasql is supported for at least **one year** from the date of its first release. During this period, fixes are backported to the latest minor version of that major release.++After the support period ends, the release may continue to work but is no longer guaranteed to receive fixes.++You're welcome to post requests to change the policy or issues if you believe something is not being addressed.+ # Discussions  Join [GitHub Discussions](https://github.com/nikita-volkov/hasql/discussions) to ask questions, provide feedback, suggest and vote on features, and help shape the future of Hasql.
hasql.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: hasql-version: 1.10+version: 1.10.1 category: Hasql, Database, PostgreSQL synopsis: Fast PostgreSQL driver with a flexible mapping API description:
src/library/Hasql/Engine/Statement.hs view
@@ -3,6 +3,7 @@     preparable,     unpreparable,     refineResult,+    toSql,   ) where @@ -110,3 +111,7 @@ refineResult :: (a -> Either Text b) -> Statement params a -> Statement params b refineResult refiner (Statement template encoder decoder preparable) =   Statement template encoder (Hasql.Engine.Decoders.Result.refineResult refiner decoder) preparable++-- | Extract the SQL template from a statement.+toSql :: Statement params result -> Text+toSql (Statement sql _ _ _) = sql
src/library/Hasql/Statement.hs view
@@ -3,6 +3,7 @@     preparable,     unpreparable,     refineResult,+    toSql,      -- * Recipes