Class: AtomicRecord
Defined in: | src/atomicrecord.coffee |
Variables Summary
- database =
-
database
Initializers
- dataset =
-
dataset
- keySize =
-
0
- valueSize =
-
0
- partition =
-
partition
- _key =
-
null
- _keyValueSize =
-
null
- keyFrag =
-
keyFrag
- index =
-
index
Class Method Summary
- . (void) transactional(func)
- . (void) doTransaction(transaction, callback)
- . (void) count()
- . (void) findAll(query, options = {})
- . (void) extend(constructor)
Instance Method Summary
-
#
(void)
data(dest, val)
- Get / Set internal value for property alias.
-
#
(void)
save(tr, callback)
- Persists record to the database
- @method
- @param {object} [tr=null] Transaction.
-
#
(void)
remove(tr, callback)
- Deletes record from the database
- @method
- @param {object} [tr=null] Transaction.
- # (void) index(tr, callback)
- # (void) serialize(callback)
Class Method Details
.
(void)
transactional(func)
.
(void)
doTransaction(transaction, callback)
.
(void)
count()
.
(void)
findAll(query, options = {})
.
(void)
extend(constructor)
Constructor Details
#
(void)
constructor(initializer)
- Creates a new typed AtomicRecord instance
- @class
- @param {object} [record] Record object initializer.
- @return {Record} a typed AtomicRecord instance.
Instance Method Details
#
(void)
data(dest, val)
- Get / Set internal value for property alias.
- @virtual
- @param {string} dest Destination property alias.
- @param {object} val Optional value to set.
- @return {object} Value if val undefined.
#
(void)
save(tr, callback)
- Persists record to the database
- @method
- @param {object} [tr=null] Transaction.
- @param {saveCallback} callback Calback.
- @return {Future}
#
(void)
remove(tr, callback)
- Deletes record from the database
- @method
- @param {object} [tr=null] Transaction.
- @param {saveCallback} callback Calback.
- @return {Future}
#
(void)
index(tr, callback)
#
(void)
serialize(callback)