pub struct DatabaseBatches {
pub connection: Option<String>,
pub table: String,
pub jobs_table: String,
}Expand description
The two database tables where batches are kept, with one row for each batch and one row for each of its jobs.
use laravel::config::queue::DatabaseBatches;
let batches = DatabaseBatches::new()
.connection("reporting")
.table("report_batches")
.jobs_table("report_batch_jobs");Fields§
§connection: Option<String>The name of the database connection, or None for the default connection.
table: StringThe table of batches, optionally qualified by its schema.
jobs_table: StringThe table of the batches’ jobs, optionally qualified by its schema.
Implementations§
Source§impl DatabaseBatches
impl DatabaseBatches
Sourcepub fn new() -> DatabaseBatches
pub fn new() -> DatabaseBatches
Returns batches kept in the job_batches and job_batch_jobs tables of the default
database connection.
Sourcepub fn connection(self, name: impl Into<String>) -> DatabaseBatches
pub fn connection(self, name: impl Into<String>) -> DatabaseBatches
Sets the named database connection to use instead of the default connection.
Sourcepub fn table(self, table: impl Into<String>) -> DatabaseBatches
pub fn table(self, table: impl Into<String>) -> DatabaseBatches
Sets the table for the batches.
Sourcepub fn jobs_table(self, table: impl Into<String>) -> DatabaseBatches
pub fn jobs_table(self, table: impl Into<String>) -> DatabaseBatches
Sets the table for the batches’ jobs.
Trait Implementations§
Source§impl Clone for DatabaseBatches
impl Clone for DatabaseBatches
Source§fn clone(&self) -> DatabaseBatches
fn clone(&self) -> DatabaseBatches
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DatabaseBatches
impl Debug for DatabaseBatches
Source§impl Default for DatabaseBatches
impl Default for DatabaseBatches
Source§fn default() -> DatabaseBatches
fn default() -> DatabaseBatches
Returns the “default value” for a type. Read more
impl Eq for DatabaseBatches
Source§impl PartialEq for DatabaseBatches
impl PartialEq for DatabaseBatches
impl StructuralPartialEq for DatabaseBatches
Auto Trait Implementations§
impl Forget for DatabaseBatches
impl Freeze for DatabaseBatches
impl Move for DatabaseBatches
impl RefUnwindSafe for DatabaseBatches
impl Send for DatabaseBatcheswhere
RawVecInner: Send,
impl Sync for DatabaseBatcheswhere
RawVecInner: Sync,
impl Unpin for DatabaseBatches
impl UnsafeUnpin for DatabaseBatches
impl UnwindSafe for DatabaseBatcheswhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<K> ForeignKey<K> for K
impl<K> ForeignKey<K> for K
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.