# `TigerBeetlex.ID`
[🔗](https://github.com/rbino/tigerbeetlex/blob/0.16.78/lib/tigerbeetlex/id.ex#L1)

Utility functions to generate TigerBeetle Time-Based Identifiers.

# `from_int`

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](https://docs.tigerbeetle.com/coding/data-modeling/#tigerbeetle-time-based-identifiers-recommended)
for the complete explanation of the format.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
