Skip to content

Commit

Permalink
Add changelog entry and function doc
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljones authored and lpil committed May 20, 2024
1 parent 0bb8779 commit d9de06a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## Unreleased

- Provided functions for handling timestamp values. The `timestamp` function
coerces a `#(#(Int, Int, Int), #(Int, Int, Int))` value representing
`#(#(year, month, day), #(hour, minute, second))` into a `Value`. The
`decode_timestamp` function can be used to decode a dynamic value returned from
the database as a timestamp in the same nested tuple format.


## v0.8.0 - 2024-05-20

- Added `array` column handling, accepting a `List` as value.
Expand Down
1 change: 1 addition & 0 deletions src/gleam/pgo.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ pub fn text(a: String) -> Value
@external(erlang, "gleam_pgo_ffi", "coerce")
pub fn bytea(a: BitArray) -> Value

/// Coerce a timestamp represented as `#(#(year, month, day), #(hour, minute, second))` into a `Value`.
@external(erlang, "gleam_pgo_ffi", "coerce")
pub fn array(a: List(a)) -> Value

Expand Down

0 comments on commit d9de06a

Please sign in to comment.