Skip to content

Commit c3c3328

Browse files
committed
v1.1.0
1 parent 2ef020f commit c3c3328

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Changelog
22

3-
## Unreleased
3+
## v1.1.0 - 2024-12-11
44

5-
- Add support for timeout in pool configuration as well as queries.
5+
- Added support for timeout in pool configuration as well as queries.
66

77
## v1.0.1 - 2024-11-26
88

gleam.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "pog"
2-
version = "1.0.1"
2+
version = "1.1.0"
33
gleam = ">= 1.4.0"
44
licences = ["Apache-2.0"]
55
description = "A PostgreSQL database client for Gleam, based on PGO"

src/pog.gleam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ pub fn rows_as_map(config: Config, rows_as_map: Bool) -> Config {
166166

167167
/// By default, pog have a default value of 5000ms as timeout.
168168
/// By setting `default_timeout`, every queries will now use that timeout.
169-
/// `default_timeout` should be set as milliseconds.
169+
/// The timeout is given in milliseconds.
170170
pub fn default_timeout(config: Config, default_timeout: Int) -> Config {
171171
Config(..config, default_timeout:)
172172
}
@@ -405,6 +405,7 @@ pub fn parameter(query: Query(t1), parameter: Value) -> Query(t1) {
405405

406406
/// Use a custom timeout for the query. This timeout will take precedence over
407407
/// the default connection timeout.
408+
/// The timeout is given in milliseconds.
408409
pub fn timeout(query: Query(t1), timeout: Int) -> Query(t1) {
409410
Query(..query, timeout: Some(timeout))
410411
}

0 commit comments

Comments
 (0)