Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Dec 11, 2024
1 parent 2ef020f commit c3c3328
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion gleam.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 2 additions & 1 deletion src/pog.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -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:)
}
Expand Down Expand Up @@ -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))
}
Expand Down

0 comments on commit c3c3328

Please sign in to comment.