ksuid
ksuid copied to clipboard
K-Sortable Globally Unique IDs
Hey, I created a postgres extension that was written in rust, and can be used in postgres to generate ksuid values for various stuff. check it here - https://github.com/spa5k/uids-postgres mainly...
Creation You can create a new instance synchronously: const ksuidFromSync = KSUID.randomSync() Or asynchronously: const ksuidFromAsync = await KSUID.random()
It seems that it wraps around rather than returning an error. https://go.dev/play/p/s2aA3-ERd-E Uses timestamp 2000-01-01T00:00:00.00Z and zeros for the payload. Returns: WfeXVK2UN8Qh86bSI6R4zNvC7ge ``` $ ksuid -f inspect WfeXVK2UN8Qh86bSI6R4zNvC7ge REPRESENTATION: String:...
Hi, I would like to check if this approach is correct: ``` id := &ksuid.KSUID{} id.UnmarshalText([]byte(IdStr)) ```
I added a link to my implementation in Zig.
Add information about Dart implementation in README.md file
Might be useful to document the reasoning as to why this is better than ULID (or perhaps use cases where it is better and where not) https://github.com/alizain/ulid/