diff --git a/CHANGELOG.md b/CHANGELOG.md index f9239af..0aacf46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ # Changelog -## Unreleased +## v1.1.0 - 2024-12-11 -- Add support for timeout in pool configuration as well as queries. +- Added support for timeout in pool configuration as well as queries. ## v1.0.1 - 2024-11-26 diff --git a/gleam.toml b/gleam.toml index 1613117..1ee3464 100644 --- a/gleam.toml +++ b/gleam.toml @@ -1,5 +1,5 @@ name = "pog" -version = "1.0.1" +version = "1.1.0" gleam = ">= 1.4.0" licences = ["Apache-2.0"] description = "A PostgreSQL database client for Gleam, based on PGO" diff --git a/src/pog.gleam b/src/pog.gleam index e0bbb68..c9f8091 100644 --- a/src/pog.gleam +++ b/src/pog.gleam @@ -166,7 +166,7 @@ pub fn rows_as_map(config: Config, rows_as_map: Bool) -> Config { /// By default, pog have a default value of 5000ms as timeout. /// By setting `default_timeout`, every queries will now use that timeout. -/// `default_timeout` should be set as milliseconds. +/// The timeout is given in milliseconds. pub fn default_timeout(config: Config, default_timeout: Int) -> Config { Config(..config, default_timeout:) } @@ -405,6 +405,7 @@ pub fn parameter(query: Query(t1), parameter: Value) -> Query(t1) { /// Use a custom timeout for the query. This timeout will take precedence over /// the default connection timeout. +/// The timeout is given in milliseconds. pub fn timeout(query: Query(t1), timeout: Int) -> Query(t1) { Query(..query, timeout: Some(timeout)) }