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.
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.