- Added a
numeric_decoderto decode numeric types coming from postgres.
- Starting a pool no longer generates an atom, instead a name is taken as an argument.
- The
Connectiontype has been removed. A subject is now used instead. connectanddisconnecthave been removed in favour ofstartandsupervised.url_configanddefault_confignow take a name parameter.- The
default_timeoutfunction has been removed. - The callback given to the
transactionfunction now receives the connection as an argument. Queries made using this connection will be in the transaction, while the pool can still be used to run queries outside the transaction. - The
gleam_timepackage is now used for time types and functions. - The
TransactionErrortype is now parameterised with an error type rather being specific to strings.
- Updated
result.thentoresult.tryto resolve deprecation warnings.
- The
url_configfunction now defaults to port (5432) when port is not specified.
- Fixed a bug where configuring SSL would crash.
- Updated for
gleam_stdlibv0.51.0.
- Updated for
gleam_stdlibv0.50.0. - The
decode_*functions have been replaced with*_decoderfunctions. gleam/dynamic/decode.Decoderis now used for decoding.
- Add support for
sslmodein connection strings. - Change SSL from
BooltoSslVerified,SslUnverifiedandSslDisabledto match against diverse CA certificates or not.
- Added support for timeout in pool configuration as well as queries.
- Corrected a mistake in the
arrayfunction type.
- Renamed to
pog. - Configuration and query API redesigned.
- Introduced the
Date,Time, andTimestamptypes. - The default connection pool size is now 10.
- Ensure
sslandpgoare running before usinggleam_pgo.
- Add ability to return rows as maps instead of tuple.
- Host CA certs are now used to verify SSL by default.
- Added the
transactionfunction andTransactionErrortype.
- Provided functions for handling date values. The
datefunction coerces a#(Int, Int, Int)value representing#(year, month, day)into aValue. Thedecode_datefunction can be used to decode a dynamic value returned from the database as a date in the same tuple format.
- The
uri_configfunction now accepts thepostgresql://scheme as well as thepostgres://scheme.
- Provided functions for handling timestamp values. The
timestampfunction coerces a#(#(Int, Int, Int), #(Int, Int, Int))value representing#(#(year, month, day), #(hour, minute, second))into aValue. Thedecode_timestampfunction can be used to decode a dynamic value returned from the database as a timestamp in the same nested tuple format.
- Added
arraycolumn handling, accepting aListas value.
- The password is now optional in the
url_configfunction, defaulting to no password if none is given.
- Relaxed the stdlib version constraint.
- Updated for Gleam v0.32.0.
- Updated for Gleam v0.30.0.
- Updated for Gleam v0.27.0.
- IPv6 is now supported through a config option.
- Added the
ConnectionUnavailableerror variant.
- Migrate to the Gleam build tool.
- API redesigned.
- Dependencies updates and versions relaxed.
- Initial release.