ErlyORM / boss_db

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

Add convert_value_to_type for atom type #268

Open tnt-dev opened 7 years ago

tnt-dev commented 7 years ago

We can give a field a data type of 'atom' in a model, but in boss_record_lib.erl, in convert_value_to_type/2, this type is not handled and models receive binary or string values. So I think it's better to convert them to atoms.

danikp commented 7 years ago

please add more info to your PR