DBIterator
DBIterator Object
Member attribute
data
Query the current data and return all data objects, each of which is a new DBIterator object
Type: Object
1 | DBIterator.data; |
Example:
1 | exports.hi1 = v => { |
Member attribute
is_begin
Check whether it is the begin of data
Type: Boolean
1 | DBIterator.is_begin(); |
Example:
1 | exports.hi1 = v => { |
is_end
Check whether it is the end of data
Type: Boolean
1 | DBIterator.is_end(); |
Example:
1 | exports.hi1 = v => { |
next
Get next data
1 | DBIterator.next(); |
Example:
1 | exports.hi1 = v => { |
previous
get previous data
1 | DBIterator.previous(); |
Example:
1 | exports.hi1 = v => { |
remove
remove data
1 | DBIterator.remove(); |
Example:
1 | exports.hi1 = v => { |
update
update data
1 | DBIterator.update(payer); |
Parameters Usage:
- payer: String, the account pays for this operation
Example:
1 | exports.hi1 = v => { |
toString
Return a string representation of an Object,typically “[Native Object]”,Objects can be reimplemented according to their own characteristics
1 | DBIterator.toString(); |
Results:
- String, Return a string representation of an object
toJSON
Return a JSON format representation of an object, which typically returns a collection of human-readable properties defined by the object
1 | DBIterator.toJSON(key); |
Parameters Usage:
- key: String, Not used
Results:
- Value, Return a value that contains json serialized values
