You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Evolu should allow a custom ID if a developer knows it's globally unique. The problem is that Evolu ID generation is hardcoded into mutate and related functions. I think the best API is to allow CustomId in EvoluSchema and use conditional types to enforce passing it into create and createOrUpdate functions to bypass hardcoded ID generation. CustomId should be the branded type for everything SQLite allows (string, number, binary).
PR welcomed.
The text was updated successfully, but these errors were encountered:
Evolu should allow a custom ID if a developer knows it's globally unique. The problem is that Evolu ID generation is hardcoded into
mutate
and related functions. I think the best API is to allowCustomId
inEvoluSchema
and use conditional types to enforce passing it intocreate
andcreateOrUpdate
functions to bypass hardcoded ID generation.CustomId
should be the branded type for everything SQLite allows (string, number, binary).PR welcomed.
The text was updated successfully, but these errors were encountered: