Open szabgab opened 1 month ago
I've found something a little shorter, though agree it would be nice to have a RecordIdKey::ulid().
RecordId::from(("cats", RecordIdKey::from_inner(Id::ulid())));
@rushmorem Any thoughts on this?
The thing is, that both my attempt and the one @Dhghomon suggested still use the surrealdb::sql::Id
which, as I understand, is the old name.
Description
I used to be able to generate an Id for a table using
How can I do it now with
RecordId
andRecordIdKey
. The latter does not have a function calledulid
related: #893
Update:
It seems I can use this:
but that just looks like way too much code.
Is there an existing issue for this?
Code of Conduct