Package org.jboss.hal.db
Class PouchDB
- java.lang.Object
-
- org.jboss.hal.db.PouchDB
-
@JsType(isNative=true, namespace="<global>") public class PouchDB extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description elemental2.promise.Promise<Document>get(String id)elemental2.promise.Promise<List<Document>>getAll(Set<String> ids)Returns the documents for the specified ids.elemental2.promise.Promise<List<Document>>prefixSearch(String id)Returns all documents whose ID starts with the specified ID.elemental2.promise.Promise<String>put(Document document)elemental2.promise.Promise<Set<String>>putAll(List<Document> documents)
-
-
-
Constructor Detail
-
PouchDB
@JsConstructor public PouchDB(String name)
-
-
Method Detail
-
getAll
@JsOverlay public final elemental2.promise.Promise<List<Document>> getAll(Set<String> ids)
Returns the documents for the specified ids. Only documents with existing IDs will be returned.
-
prefixSearch
@JsOverlay public final elemental2.promise.Promise<List<Document>> prefixSearch(String id)
Returns all documents whose ID starts with the specified ID.
-
-