BrowserDatabaseAdapter class

A database adapter that stores data using some browser API. The default factory returns an instance of BrowserLocalStorageDatabase.

import 'package:database/browser.dart';

void main() {
  final database = BrowserDatabaseAdapter(),
  // ...
}
Implemented types
Implementers

Constructors

BrowserDatabaseAdapter()
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

close() Future<void>
Closes the database adapter.
@mustCallSuper, inherited
database() Database
Returns the database.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
performCheckConnection({Duration timeout}) Future<void>
inherited
performDocumentBatch(DocumentBatchRequest request) Future<void>
inherited
performDocumentDelete(DocumentDeleteRequest request) Future<void>
inherited
performDocumentDeleteBySearch(DocumentDeleteBySearchRequest request) Future<void>
inherited
performDocumentInsert(DocumentInsertRequest request) Future<void>
inherited
performDocumentRead(DocumentReadRequest request) Stream<Snapshot>
inherited
performDocumentReadWatch(DocumentReadWatchRequest request) Stream<Snapshot>
inherited
performDocumentSearch(DocumentSearchRequest request) Stream<QueryResult>
inherited
performDocumentSearchChunked(DocumentSearchChunkedRequest request) Stream<QueryResult>
inherited
performDocumentSearchWatch(DocumentSearchWatchRequest request) Stream<QueryResult>
inherited
performDocumentTransaction(DocumentTransactionRequest request) Future<void>
inherited
performDocumentUpdate(DocumentUpdateRequest request) Future<void>
inherited
performDocumentUpdateBySearch(DocumentUpdateBySearchRequest request) Future<void>
inherited
performDocumentUpsert(DocumentUpsertRequest request) Future<void>
inherited
performExtension(DatabaseExtensionRequest<DatabaseExtensionResponse> request) Stream<DatabaseExtensionResponse>
inherited
performSchemaRead(SchemaReadRequest request) Stream<DatabaseSchema>
inherited
performSqlQuery(SqlQueryRequest request) Future<SqlIterator>
inherited
performSqlStatement(SqlStatementRequest request) Future<SqlStatementResult>
inherited
performSqlTransaction(SqlTransactionRequest request) Future<void>
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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