Patrik Stenmark
b0180b0619
Rename type
option to column_type
...
Thr reaason for this is that Ecto seems to be handling options
differently when the custom type is used for a `belongs_to` field. For
example if `belongs_to :thing, Thing, type: TypeID` is specified, the
value for `type` will be `TypeIO`, which makes the opts valdiation fail.
Using another name for `type`, makes it possible to both set `type` (The
Ecto type of the field) and `column_type` (The column type in the
database)`.
2024-10-03 09:05:33 +02:00
Andrew Timberlake
74e1827dd4
Change default type to uuid ( #34 )
2024-08-28 12:15:03 -04:00
Andrew Timberlake
1e4d1f8aee
Fix prefix validation in Ecto type ( #35 )
2024-08-28 12:10:40 -04:00
Dennis Beatty
c74d433c2d
allow binary type ( #32 )
...
* allow binary type
* remove binary_id support
2024-07-18 14:14:01 +00:00
Sloane
dd8f957106
fix: raise if primary_key: true and no prefix ( #22 )
2023-07-16 11:36:19 -04:00
Sloane
c9eb03b44e
Better support for Ecto ( #21 )
...
* use schema associations to derive prefixes
* expand documention for ecto usage
* 0.5.0
2023-07-16 11:01:51 -04:00
Sloane
303a474437
Use homerolled UUID module ( #9 )
...
* remove uniq, use homerolled uuid module
* update changelog
2023-07-06 14:23:58 -04:00
Sloane Perrault
63e0952823
limit first suffix char to 0..7
2023-07-06 10:24:56 -04:00
Sloane Perrault
db5e754d86
modify to catch invalid specs
2023-07-02 08:19:23 -04:00
Sloane Perrault
6d4a555585
modify to support valid specs
2023-07-02 08:13:02 -04:00
Sloane Perrault
9a895737fd
fix base 32 encoding
2023-06-30 06:03:07 -04:00
Sloane Perrault
b34945f79d
add comments to base 32 module
2023-06-29 19:04:05 -04:00
Sloane Perrault
a9c52b8496
fix base32 encoding
2023-06-29 18:22:24 -04:00
Sloane Perrault
cdd8624662
initial implementation
2023-06-29 17:23:05 -04:00