goog.db.Index
Classgoog.db.Index(index)
Creates an IDBIndex wrapper object. Indexes are associated with object stores and provide methods for looking up objects based on their non-key properties. Should not be created directly, access through the object store it belongs to.
index
{!IDBIndex
}
.get(value)
Fetches a single object from the object store. Even if there are multiple objects that match the given value, this method will get only one of them.
value
{!Object
}
goog.async.Deferred
}
.getAll(opt_value)
Gets all indexed objects. If the value is provided, gets all indexed objects that match the value instead.
opt_value
{!Object
=}
goog.async.Deferred
}
.getAllKeys(opt_value)
Gets the keys to look up all the indexed objects. If the value is provided, gets all keys for objects that match the value instead.
opt_value
{!Object
=}
goog.async.Deferred
}
.getKey(value)
Looks up a single object from the object store and gives back the key that it's listed under in the object store. Even if there are multiple objects that match the given value, this method will only get one of their keys.
value
{!Object
}
goog.async.Deferred
}
.getKeyPath()
string
}
.getName()
string
}
.isUnique()
boolean
}