@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="IDBFactory")
public class IDBFactory
extends JsObject
| Modifier | Constructor and Description |
|---|---|
protected |
IDBFactory() |
| Modifier and Type | Method and Description |
|---|---|
short |
cmp(java.lang.Object first,
java.lang.Object second)
An integer that indicates the result of the comparison; the table below lists the possible values and their meanings:
|
Promise<JsArray<IDBDatabaseInfo>> |
databases()
The databases method of the IDBFactory interface returns a list represening all the available databases, including their names and versions.
|
IDBOpenDBRequest |
deleteDatabase(java.lang.String name)
The deleteDatabase() method of the IDBFactory interface requests the deletion of a database.
|
IDBOpenDBRequest |
open(java.lang.String name)
If an error occurs while the database connection is being opened, then an error event is fired on the request object returned from this method.
|
IDBOpenDBRequest |
open(java.lang.String name,
int version)
If an error occurs while the database connection is being opened, then an error event is fired on the request object returned from this method.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic short cmp(@Nullable
java.lang.Object first,
@Nullable
java.lang.Object second)
@Nonnull public Promise<JsArray<IDBDatabaseInfo>> databases()
@Nonnull public IDBOpenDBRequest deleteDatabase(@Nonnull java.lang.String name)
@Nonnull public IDBOpenDBRequest open(@Nonnull java.lang.String name, int version)
@Nonnull public IDBOpenDBRequest open(@Nonnull java.lang.String name)