Page MenuHomeDevCentral

Implement UUIDv1 UUIDv6 UUIDv7 and UUIDv8
ClosedPublic

Authored by dereckson on Apr 10 2022, 09:38.
Tags
None
Referenced Files
F6803757: D2660.id6724.diff
Fri, Apr 11, 08:37
Unknown Object (File)
Thu, Apr 10, 03:02
Unknown Object (File)
Sat, Apr 5, 01:05
Unknown Object (File)
Wed, Apr 2, 10:31
Unknown Object (File)
Mon, Mar 31, 20:55
Unknown Object (File)
Sun, Mar 30, 10:55
Unknown Object (File)
Fri, Mar 28, 03:06
Unknown Object (File)
Fri, Mar 28, 02:51
Subscribers
None

Details

Summary

There is currently a proposal for new UUID to address concerns,
and create identifiers suitable for database purpose as primary key.

This change implements UUIDv6, UUIDv7 and UUIDv8 from that proposal.

Allow to convert back and forth between UUIDv1 and UUIDv6.

Allow to represent timestamps for UUIDv1/UUIDv6 or UUIDv7.

Allow to determine version and variant from a UUID.

References:

  • RFC 4122 for UUIDv1
  • I-D draft-peabody-dispatch-new-uuid-format-03 for UUIDv6 UUIDv7 UUIDv8

Ref T1717.

Test Plan

Full coverage of added code by unit tests.

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable