Skip to content

Commit 651dad4

Browse files
committed
v0.10.0
1 parent aca70fd commit 651dad4

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
## v0.10.0 - 2024-05-31
44

5-
- Fixed the issue where `uri_config` could parse connections string starting with `postgres://`, but not `postgresql://`.
5+
- The `uri_config` function now accepts the `postgresql://` scheme as well as
6+
the `postgres://` scheme.
67

78
## v0.9.0 - 2024-05-20
89

gleam.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "gleam_pgo"
2-
version = "0.9.0"
2+
version = "0.10.0"
33
gleam = ">= 0.32.0"
44
licences = ["Apache-2.0"]
55
description = "Gleam bindings to the PGO PostgreSQL client"

src/gleam/pgo.gleam

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ pub fn url_config(database_url: String) -> Result(Config, Nil) {
9393
path: path,
9494
..,
9595
) -> {
96-
case list.contains(["postgres", "postgresql"], scheme) {
97-
True -> Ok(#(userinfo, host, path, db_port))
98-
False -> Error(Nil)
96+
case scheme {
97+
"postgres" | "postgresql" -> Ok(#(userinfo, host, path, db_port))
98+
_ -> Error(Nil)
9999
}
100100
}
101101
_ -> Error(Nil)

0 commit comments

Comments
 (0)