IndexedDBApi class

Constructors

IndexedDBApi(Client _client)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearObjectStore(String databaseName, String objectStoreName, {String? securityOrigin, String? storageKey}) Future<void>
Clears all entries from an object store. securityOrigin At least and at most one of securityOrigin, storageKey must be specified. Security origin. storageKey Storage key. databaseName Database name. objectStoreName Object store name.
deleteDatabase(String databaseName, {String? securityOrigin, String? storageKey}) Future<void>
Deletes a database. securityOrigin At least and at most one of securityOrigin, storageKey must be specified. Security origin. storageKey Storage key. databaseName Database name.
deleteObjectStoreEntries(String databaseName, String objectStoreName, KeyRange keyRange, {String? securityOrigin, String? storageKey}) Future<void>
Delete a range of entries from an object store securityOrigin At least and at most one of securityOrigin, storageKey must be specified. Security origin. storageKey Storage key. keyRange Range of entry keys to delete
disable() Future<void>
Disables events from backend.
enable() Future<void>
Enables events from backend.
getMetadata(String databaseName, String objectStoreName, {String? securityOrigin, String? storageKey}) Future<GetMetadataResult>
Gets metadata of an object store. securityOrigin At least and at most one of securityOrigin, storageKey must be specified. Security origin. storageKey Storage key. databaseName Database name. objectStoreName Object store name.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestData(String databaseName, String objectStoreName, String indexName, int skipCount, int pageSize, {String? securityOrigin, String? storageKey, KeyRange? keyRange}) Future<RequestDataResult>
Requests data from object store or index. securityOrigin At least and at most one of securityOrigin, storageKey must be specified. Security origin. storageKey Storage key. databaseName Database name. objectStoreName Object store name. indexName Index name, empty string for object store data requests. skipCount Number of records to skip. pageSize Number of records to fetch. keyRange Key range.
requestDatabase(String databaseName, {String? securityOrigin, String? storageKey}) Future<DatabaseWithObjectStores>
Requests database with given name in given frame. securityOrigin At least and at most one of securityOrigin, storageKey must be specified. Security origin. storageKey Storage key. databaseName Database name. Returns: Database with an array of object stores.
requestDatabaseNames({String? securityOrigin, String? storageKey}) Future<List<String>>
Requests database names for given security origin. securityOrigin At least and at most one of securityOrigin, storageKey must be specified. Security origin. storageKey Storage key. Returns: Database names for origin.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited