Thanks for this well-design library!
There are use cases where the database system need to be bootstrapped with a few "well known" ids, while the rest of the data entities can be generated tsid as usual. (Example: you are creating an user database where the "admin" user must be with id=0, all other users can be get their IDs with Tsid::fast, or TsidCreator::getTsid, but should never receive 0)
Is there an easy way to generating tsids by excluding certain reserved values? I can see a way how to do that with some sort of skipping factory, but was hoping for something built-in, a "creator" that takes a list of "avoid-these-values" argument..
Thanks for this well-design library!
There are use cases where the database system need to be bootstrapped with a few "well known" ids, while the rest of the data entities can be generated tsid as usual. (Example: you are creating an user database where the "admin" user must be with id=0, all other users can be get their IDs with
Tsid::fast, orTsidCreator::getTsid, but should never receive 0)Is there an easy way to generating tsids by excluding certain reserved values? I can see a way how to do that with some sort of skipping factory, but was hoping for something built-in, a "creator" that takes a list of "avoid-these-values" argument..