Skip to content

Commit 35a1b4f

Browse files
committed
Add new signatures to uuidv7() and uuidv7_sub_ms()
1 parent bde5fa1 commit 35a1b4f

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,20 @@ To activate the extension in the target databases:
2323
## Functions
2424

2525
### `uuidv7() -> uuid`
26-
Generate a UUID v7 value with millisecond precision and 74 bits of randomness.
26+
Generate a UUID v7 value using the current time with millisecond precision
27+
and 74 bits of randomness.
28+
29+
### `uuidv7(timestamptz) -> uuid`
30+
Generate a UUID v7 value using the given time with millisecond precision
31+
and 74 bits of randomness.
2732

2833
### `uuidv7_sub_ms() -> uuid`
29-
Generate a UUID v7 value with sub-millisecond precision (up to 0.25 µs), with 62 bits of randomness.
34+
Generate a UUID v7 value using the current time with sub-millisecond
35+
precision (up to 0.25 µs), with 62 bits of randomness.
36+
37+
### `uuidv7_sub_ms(timestamptz) -> uuid`
38+
Generate a UUID v7 value using the given time with sub-millisecond
39+
precision (up to 0.25 µs), with 62 bits of randomness.
3040

3141
### `uuidv7_extract_timestamp(uuid) -> timestamptz`
3242
Extract the timestamp with millisecond precision from the given UUID v7 value.

0 commit comments

Comments
 (0)