DatabaseService class abstract
An interface for a database service used to cache generated code.
- Implementers
Constructors
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
-
createEntry(
String digest, String cachedFilePath) → Future< void> - Creates an entry for the given digest and cached file path.
-
createEntryForBulk(
Map< String, String> cachedFilePaths) → Future<void> - Creates entries for the given cached file paths in bulk.
-
flush(
) → Future< void> - Flushes the database service. Flushing to disk, or closing network connections could be done here.
-
getCachedFilePath(
String digest) → FutureOr< String> - Gets the cached file path for the given digest.
-
getCachedFilePathForBulk(
Iterable< String> digests) → FutureOr<Map< String, String> > - Gets the cached file path for the given digests in bulk.
-
init(
) → Future< void> - Initializes the database service.
-
isMappingAvailable(
String digest) → FutureOr< bool> - Checks if the mapping is available for the given digest.
-
isMappingAvailableForBulk(
Iterable< String> digests) → FutureOr<Map< String, bool> > - Checks if the mapping is available for the given digests in bulk.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited