To jump right in and get started, check out . ulid’s offer the best of sequential integer and uuid’s. check out to learn more about how and why ulid’s are used! The ulid pack is a lightweight wrapper around the . As such, it simply ports over the core function: ulid Using the function with no arguments returns a single ulid: 01G0JCBACTHTW54C671R594Q0W Sometimes you might want to provide a seed value, maybe this comes from a date you already have in your table, or maybe it’s just your favorite number:
There are no rows in this table
Note how, despite using the same exact seed value, we still get different id’s. Their time component is shared, but the randomness is unique to each invocation. For more information, please check out the ulid spec on GitHub:
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (