ydn.db
YDN database module.
Static Methods
cmp(first, second)
Compare two keys.
- Parameters:
- {!IDBKey} first
- The first key.
- {!IDBKey} second
- The second key.
- Returns:
- {number} Return 1 if the first key is greater than the second, -1 if the first is less than the second, and 0 if the first is equal to the second..
deleteDatabase(db_name, type)
Delete database.
- Parameters:
- {string} db_name
- The first key.
- {type=} Optional. type
- Database type. If not given all types of database are tried to delete.
- Returns:
- {!goog.async.Deferred} Returns a
promise object for database delete process completion.
done: Result not defined.fail: Result not defined.
version
Module version.
- Returns:
- {string} Module version in semantic version format (major.minor.patch).