3 ms·
I made a simple Python test library that extends the standard UUID class with UUIDv6 and UUIDv7. You might want to check it out. https://github.com/oittaa/uuid6
by oittaa 4y ago
I made a simple Python test library that extends the standard UUID class with UUIDv6 and UUIDv7. You might want to check it out. https://github.com/oittaa/uuid6-python https://github.com/oittaa/uuid6-python
The official UUID Draft repository has also some alternatives if you'd like to check those out. https://github.com/uuid6/prototypes https://github.com/uuid6/prototypes
Postgres supports UUIDs with any version number natively so you can then do something like this with it:
create table data (id uuid, firstname varchar(100));
insert into data (id, firstname) values ('017f21cf-d130-7cc3-98c4-dc0c0c07398f', 'John');
select * from data;