Crate julid

Source

Modules§

julid
Contains the Julid type, which is publicly exported at the top level.
serde
Serialization into bytes, and deserialization from a variety of formats, with Serde (feature serde (default))
sqlite_plugin
The code for the SQLite plugin is kept in this module, and exposed via the sqlite3_julid_init function (feature plugin (non-default))
sqlx
Traits from the SQLx crate for getting Julids into and out of SQLite databases from normal Rust applications. (feature sqlx (default))
uuid
UUIDv7s are almost as good as Julids, and can be interconverted almost perfectly. (feature uuid (non-default))

Structs§

Julid
A Julid is a unique 128-bit lexicographically sortable identifier, compatible with ULIDs.

Enums§

DecodeError
An error that can occur when decoding a base32 string into a Julid (invalid length, or invalid character)

Constants§

COUNTER_BITS
The number of bits in the monotonic counter for intra-millisecond IDs (16)
RANDOM_BITS
The number of fully random bits (64)
TIME_BITS
The number of bits in a Julid’s millisecond timestamp (48)
UNIQUE_BITS
The number of random bits + bits in the monotonic counter (80)

Functions§

sqlite3_julid_init
This unsafe extern "C" function is the main entry point into the loadable SQLite extension. By default, it and the plugin module it depends on will not be built. Build with cargo build --features plugin