Skip to content

Commit 666940d

Browse files
committed
Update the changelog with information about relational lenses.
1 parent 335e7c7 commit 666940d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

CHANGES.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,21 @@ used, then the query will evaluated using the default evaluator, and
8181
if `nested` is used, then the query will be shredded. If the policy is
8282
omitted, then the `shredding` setting is used to decide, as before.
8383

84+
## Relational Lenses: Support for Serial Type Columns
85+
86+
The Relational Lenses extension now supports postgresql serial type
87+
columns. In Links, the serial type is encoded as a variant type
88+
`Serial` with three constructors:
89+
90+
- `Key(Int)` which indicates a known key value retrieved from the
91+
database.
92+
- `NewKey` which indicates that a value should be chosen by the
93+
database server.
94+
- `NewKeyMapped(Int)` which is similar to `NewKey`, except that it
95+
allows multiple entries to refer to the same key (e.g. in the case of
96+
a table join, where two new entries are inserted referring to the same
97+
right table).
98+
8499
## Miscellaneous
85100

86101
- Links now builds with Lwt version 5.

0 commit comments

Comments
 (0)