ErlyORM / boss_db

BossDB: a sharded, caching, pooling, evented ORM for Erlang
Other
277 stars 138 forks source link

allow custom type #184

Open mihawk opened 10 years ago

mihawk commented 10 years ago

use case:

-module(toto, [
               Id     ::pk(),
               Phone  ::phone(),
               Caviar ::string()
               Status ::picklist()
             ]).

would like to extend type, from the source code i see: string, binary, uuid, date, datetime, integer, float, boolean, timestamp, atom

i guess this small change will not affect existing code, perhaps some test case.