Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've started using python-ulid as ULIDs seem superior to UUIDs. https://pypi.org/project/python-ulid/


I love ULID too; but it's really just UUIDv7 (or v8) with a mustache (it's all just 128bit IDs). And in the PG world, where there isn't native support for ULID one can use UUIDv7/8 and bridge that gap. We use ULID extensively in exposed IDs, it's very URL friendly, copy/paste friendly, etc -- but it's a UUID datatype in the DB. (ie: ULID => UUID => DB)


But I thought ULID will work in a UUID field in Postgres? Will it in other DBs?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: