BackupRepository class Null safety
The repository for BackupModel persistance in Database
.
Constructors
- BackupRepository(Database _db)
-
Builds a BackupRepository that will use
_db
for persistence.
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
-
getByPath(
String path) → BackupModel? -
Gets a BackupModel registry by its
path
. -
getPending(
) → List< BackupModel> -
Gets all pending
BackupModel
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
save(
BackupModel backup) → void -
Persists a
backup
in_db
. -
toString(
) → String -
A string representation of this object.
inherited
-
update(
BackupModel backup) → void - Updates the persisted BackupModel by adding BackupModel.signature and BackupModel.timestamp
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- columnPath → const String
-
The BackupModel.path collumn
'path'
- columnSignature → const String
-
The BackupModel.signature collumn
'signature'
- columnTimestamp → const String
-
The BackupModel.timestamp collumn
'timestamp'
- table → const String
-
The BackupModel table name in
_db
.'backup'