-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow uuid_str() to take any string or blob #99
Comments
|
like me reference UUIDv3, v5 and v8:
one could call the function more precisely:
|
my particular real-world use case is that i create "stable unique ids" out of the concatenation of various text-fields in the row, which are then easier to join and reference and can also act as safe ids in other protocols (like rest-urls). today i have to do this outside of sqlite with scripting re-writing the csv-import. it would be much simpler to do the csv-import and then issue |
i have looked at the code ... a quick win would be to just check if the parameter is "at least" and not "exactly" 16 bytes. @nalgeon would you agree ? |
Sorry, I don't like the idea of |
would you accept a pull request for |
No, I don't think so, sorry. |
i dont understand
i was only interested of also making other users lifes easer. sqlean is a really useful contribution to the sqlite community and i hope you keep up the existing work. |
today this happens:
if the string or blob is at least 16 bytes long uuid_str() could just take the first 16 bytes and ignore the rest.
in addition a shortcut could be dedicated functions like:
The text was updated successfully, but these errors were encountered: