DatabaseFailedJobProvider class final
Laravel-compatible failed_jobs table.
- Implemented types
Constructors
- DatabaseFailedJobProvider(DatabaseManager db, {String table = 'failed_jobs', String? connection})
-
Failed jobs in the
table(failed_jobs) ofdb.
Properties
- connection → String?
-
The connection of the table; the default one when null.
final
- db → DatabaseManager
-
The database holding the failed jobs.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- table → String
-
The failed jobs table.
final
Methods
-
all(
) → Future< List< FailedJob> > -
Every failed job, newest first.
override
-
find(
Object id) → Future< FailedJob?> -
The failed job
id(a row id or UUID), or null.override -
flush(
) → Future< int> -
Deletes every failed job and returns how many there were.
override
-
forget(
Object id) → Future< bool> -
Deletes the failed job
id; returns whether it existed.override -
log(
{required String connection, required String queue, required String payload, required String exception}) → Future< Object> -
Records a failed job and returns its id.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prune(
Duration olderThan) → Future< int> -
Deletes entries older than
olderThan; returns the count.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited