ErlyORM / boss_db

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

Record:counter(Id::string()) is needed #220

Closed liuzhen closed 8 years ago

liuzhen commented 9 years ago

For now, counters for a record can only be added/defined using -counter(); but there is the case counters without explicit definition, just as boss_db:counter(), is used.

Admitted that one can use boss_db:counter() directly by taking care of the Record:id(), still Record:counter() looks clean.