packages feed

hasql 1.10.1 → 1.10.2

raw patch · 8 files changed

+41/−5 lines, 8 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Hasql.Connection.Settings: instance GHC.Classes.Eq Hasql.Connection.Settings.Settings
+ Hasql.Connection.Settings: instance GHC.Internal.Classes.Eq Hasql.Connection.Settings.Settings
+ Hasql.Decoders: bpchar :: Value Text
+ Hasql.Decoders: varchar :: Value Text
+ Hasql.Encoders: bpchar :: Value Text
+ Hasql.Encoders: varchar :: Value Text

Files

README.md view
@@ -33,17 +33,19 @@  - ["hasql"](https://github.com/nikita-volkov/hasql) - the root of the ecosystem, which provides the essential abstraction over the PostgreSQL client functionality and mapping of values. Everything else revolves around that library. -- ["hasql-th"](https://github.com/nikita-volkov/hasql-th) - Template Haskell utilities, providing compile-time syntax checking and easy statement declaration. - - ["hasql-transaction"](https://github.com/nikita-volkov/hasql-transaction) - an STM-inspired composable abstraction over database transactions providing automated conflict resolution. +- ["hasql-pool"](https://github.com/nikita-volkov/hasql-pool) - a Hasql-specialized abstraction over the connection pool.++- ["hasql-postgresql-types"](https://github.com/nikita-volkov/hasql-postgresql-types) - integration with the ["postgresql-types"](https://github.com/nikita-volkov/postgresql-types) library, which is a collection of Haskell types precisely modeling PostgreSQL types without data loss or compromise.+ - ["hasql-dynamic-statements"](https://github.com/nikita-volkov/hasql-dynamic-statements) - a toolkit for generating statements based on the parameters. +- ["hasql-th"](https://github.com/nikita-volkov/hasql-th) - Template Haskell utilities, providing compile-time syntax checking and easy statement declaration. + - ["hasql-cursor-query"](https://github.com/nikita-volkov/hasql-cursor-query) - a declarative abstraction over cursors.  - ["hasql-cursor-transaction"](https://github.com/nikita-volkov/hasql-cursor-transaction) - a lower-level abstraction over cursors, which however allows to fetch from multiple cursors simultaneously. Generally though "hasql-cursor-query" is the recommended alternative.--- ["hasql-pool"](https://github.com/nikita-volkov/hasql-pool) - a Hasql-specialized abstraction over the connection pool.  - ["hasql-migration"](https://github.com/tvh/hasql-migration) - A port of postgresql-simple-migration for use with hasql. 
hasql.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: hasql-version: 1.10.1+version: 1.10.2 category: Hasql, Database, PostgreSQL synopsis: Fast PostgreSQL driver with a flexible mapping API description:
src/library/Hasql/Codecs/Decoders.hs view
@@ -15,6 +15,8 @@     Value.numeric,     Value.char,     Value.text,+    Value.varchar,+    Value.bpchar,     Value.bytea,     Value.date,     Value.timestamp,
src/library/Hasql/Codecs/Decoders/Value.hs view
@@ -9,6 +9,8 @@     numeric,     char,     text,+    varchar,+    bpchar,     bytea,     date,     timestamp,@@ -148,6 +150,18 @@ {-# INLINEABLE text #-} text :: Value Text text = primitive "text" TypeInfo.text Binary.text_strict++-- |+-- Decoder of the @VARCHAR@ values.+{-# INLINEABLE varchar #-}+varchar :: Value Text+varchar = primitive "varchar" TypeInfo.varchar Binary.text_strict++-- |+-- Decoder of @BPCHAR@ or @CHAR(n)@, @CHARACTER(n)@ values.+{-# INLINEABLE bpchar #-}+bpchar :: Value Text+bpchar = primitive "bpchar" TypeInfo.bpchar Binary.text_strict  -- | -- Decoder of the @BYTEA@ values.
src/library/Hasql/Codecs/Encoders.hs view
@@ -25,6 +25,8 @@     Value.numeric,     Value.char,     Value.text,+    Value.varchar,+    Value.bpchar,     Value.bytea,     Value.date,     Value.timestamp,
src/library/Hasql/Codecs/Encoders/Value.hs view
@@ -115,6 +115,18 @@ text = primitive "text" False TypeInfo.text Binary.text_strict (TextBuilder.string . show)  -- |+-- Encoder of @VARCHAR@ values.+{-# INLINEABLE varchar #-}+varchar :: Value Text+varchar = primitive "varchar" False TypeInfo.varchar Binary.text_strict (TextBuilder.string . show)++-- |+-- Encoder of @BPCHAR@ or @CHAR(n)@, @CHARACTER(n)@ values.+{-# INLINEABLE bpchar #-}+bpchar :: Value Text+bpchar = primitive "bpchar" False TypeInfo.bpchar Binary.text_strict (TextBuilder.string . show)++-- | -- Encoder of @BYTEA@ values. {-# INLINEABLE bytea #-} bytea :: Value ByteString
src/library/Hasql/Decoders.hs view
@@ -36,6 +36,8 @@     numeric,     char,     text,+    varchar,+    bpchar,     bytea,     date,     timestamp,
src/library/Hasql/Encoders.hs view
@@ -25,6 +25,8 @@     numeric,     char,     text,+    varchar,+    bpchar,     bytea,     date,     timestamp,