sloanelybutsurely / typeid-elixir

Elixir implementation of TypeIDs: type-safe, K-sortable, and globally unique identifiers inspired by Stripe IDs
MIT License
58 stars 8 forks source link

Change default type to uuid #34

Closed andrewtimberlake closed 2 months ago

andrewtimberlake commented 2 months ago

The change to :binary type (#32) only partially works because occasionally ecto will try to cast an id to bytea However, ecto does support the uuid type which does work. This also works with autogenerate/1 which #31 references.

I have included a fix for getting the prefix which deals with #33

sloanelybutsurely commented 2 months ago

Thanks again!