Changelog for hasql-1.9.3
1.9
- Revised the settings construction exposing a tree of modules
- Added a global prepared statements setting
Why the changes?
To introduce the new global prepared statements setting and to make the settings API ready for extension without backward compatibility breakage.
Instructions on upgrading the 1.8 code
When explicit connection string is used
Replace
Hasql.Connection.acquire connectionString
with
Hasql.Connection.acquire
[ Hasql.Connection.Setting.connection (Hasql.Connection.Setting.Connection.string connectionString)
]
When parameteric connection string is used
Replace
Hasql.Connection.acquire (Hasql.Connection.settings host port user password dbname)
with
Hasql.Connection.acquire
[ Hasql.Connection.Setting.connection
( Hasql.Connection.Setting.Connection.params
[ Hasql.Connection.Setting.Connection.Param.host host,
Hasql.Connection.Setting.Connection.Param.port port,
Hasql.Connection.Setting.Connection.Param.user user,
Hasql.Connection.Setting.Connection.Param.password password,
Hasql.Connection.Setting.Connection.Param.dbname dbname
]
)
]
1.8.1
- In case of exceptions thrown by user from inside of Session, the connection status gets checked to be out of transaction and unless it is the connection gets reset.
1.8
- Move to "iproute" from "network-ip" for the "inet" datatype (#163).
1.7
- Decidable instance on
Encoders.Params
removed. It was useless and limited the design. QueryError
type renamed toSessionError
.PipelineError
constructor added to theSessionError
type.
1.6.3.1
- Moved to "postgresql-libpq-0.10"
1.6.3
- Added
unknownEnum
encoder
1.6.2
- Added composite encoder
- Added
oid
andname
encoders
1.6.1
- Added
jsonLazyBytes
andjsonbLazyBytes
1.6
- Added position to
ServerError
(breaking change). - Disabled failure on empty query.
1.5
- Added column number to
RowError
(breaking change). - Added
MonadReader Connection
instance for Session.