TigerBeetlex.ID (tigerbeetlex v0.16.48)

View Source

Utility functions to generate TigerBeetle Time-Based Identifiers.

Summary

Functions

Converts an integer to a 128 bit binary id.

Generate a TigerBeetle Time-Based Identifier.

Functions

from_int(n)

Converts an integer to a 128 bit binary id.

The integer is formatted in little endian format so that the correct ordering is preserved in TigerBeetle LSM trees.

generate()

Generate a TigerBeetle Time-Based Identifier.

This is a lexicographically-sortable time-based monotonic identifier. See TigerBeetle docs for the complete explanation of the format.