pub struct SequenceBuilder { /* private fields */ }Expand description
Builder for constructing database sequences
Implementations§
Source§impl SequenceBuilder
impl SequenceBuilder
Sourcepub fn set_name(&mut self, name: impl Into<String>)
pub fn set_name(&mut self, name: impl Into<String>)
Set the sequence name (mutable reference version for conditional building)
Sourcepub fn set_schema(&mut self, schema: impl Into<String>)
pub fn set_schema(&mut self, schema: impl Into<String>)
Set the schema name (mutable reference version for conditional building)
Sourcepub fn set_data_type(&mut self, data_type: impl Into<String>)
pub fn set_data_type(&mut self, data_type: impl Into<String>)
Set the data type (mutable reference version for conditional building)
Sourcepub fn start_value(self, start: i64) -> Self
pub fn start_value(self, start: i64) -> Self
Set the start value
Sourcepub fn set_start_value(&mut self, start: i64)
pub fn set_start_value(&mut self, start: i64)
Set the start value (mutable reference version for conditional building)
Sourcepub fn minimum_value(self, min: i64) -> Self
pub fn minimum_value(self, min: i64) -> Self
Set the minimum value
Sourcepub fn set_minimum_value(&mut self, min: i64)
pub fn set_minimum_value(&mut self, min: i64)
Set the minimum value (mutable reference version for conditional building)
Sourcepub fn maximum_value(self, max: i64) -> Self
pub fn maximum_value(self, max: i64) -> Self
Set the maximum value
Sourcepub fn set_maximum_value(&mut self, max: i64)
pub fn set_maximum_value(&mut self, max: i64)
Set the maximum value (mutable reference version for conditional building)
Sourcepub fn set_increment(&mut self, increment: i64)
pub fn set_increment(&mut self, increment: i64)
Set the increment (mutable reference version for conditional building)
Sourcepub fn set_cycle(&mut self, cycle: bool)
pub fn set_cycle(&mut self, cycle: bool)
Set the cycle behavior (mutable reference version for conditional building)
Sourcepub fn set_cache(&mut self, cache: i64)
pub fn set_cache(&mut self, cache: i64)
Set the cache size (mutable reference version for conditional building)
Sourcepub fn set_owner(&mut self, owner: impl Into<String>)
pub fn set_owner(&mut self, owner: impl Into<String>)
Set the owner (mutable reference version for conditional building)
Sourcepub fn set_comment(&mut self, comment: impl Into<String>)
pub fn set_comment(&mut self, comment: impl Into<String>)
Set a comment on the sequence (mutable reference version for conditional building)
Sourcepub fn auto_increment() -> Self
pub fn auto_increment() -> Self
Create an auto-increment sequence
Sourcepub fn small_auto_increment() -> Self
pub fn small_auto_increment() -> Self
Create a small auto-increment sequence
Sourcepub fn large_auto_increment() -> Self
pub fn large_auto_increment() -> Self
Create a large auto-increment sequence
Sourcepub fn get_schema(&self) -> Option<&str>
pub fn get_schema(&self) -> Option<&str>
Get the schema name
Sourcepub fn get_data_type(&self) -> Option<&str>
pub fn get_data_type(&self) -> Option<&str>
Get the data type
Sourcepub fn get_start_value(&self) -> Option<i64>
pub fn get_start_value(&self) -> Option<i64>
Get the start value
Sourcepub fn get_minimum_value(&self) -> Option<i64>
pub fn get_minimum_value(&self) -> Option<i64>
Get the minimum value
Sourcepub fn get_maximum_value(&self) -> Option<i64>
pub fn get_maximum_value(&self) -> Option<i64>
Get the maximum value
Sourcepub fn get_increment(&self) -> Option<i64>
pub fn get_increment(&self) -> Option<i64>
Get the increment
Sourcepub fn get_comment(&self) -> Option<&str>
pub fn get_comment(&self) -> Option<&str>
Get the comment
Sourcepub fn has_schema(&self) -> bool
pub fn has_schema(&self) -> bool
Check if the sequence has a schema
Sourcepub fn has_data_type(&self) -> bool
pub fn has_data_type(&self) -> bool
Check if the sequence has a data type
Sourcepub fn has_start_value(&self) -> bool
pub fn has_start_value(&self) -> bool
Check if the sequence has a start value
Sourcepub fn has_minimum_value(&self) -> bool
pub fn has_minimum_value(&self) -> bool
Check if the sequence has a minimum value
Sourcepub fn has_maximum_value(&self) -> bool
pub fn has_maximum_value(&self) -> bool
Check if the sequence has a maximum value
Sourcepub fn has_increment(&self) -> bool
pub fn has_increment(&self) -> bool
Check if the sequence has an increment
Sourcepub fn has_comment(&self) -> bool
pub fn has_comment(&self) -> bool
Check if the sequence has a comment
Trait Implementations§
Source§impl Clone for SequenceBuilder
impl Clone for SequenceBuilder
Source§fn clone(&self) -> SequenceBuilder
fn clone(&self) -> SequenceBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ConditionalBuilder for SequenceBuilder
impl ConditionalBuilder for SequenceBuilder
Source§impl Debug for SequenceBuilder
impl Debug for SequenceBuilder
Source§impl InspectableBuilder for SequenceBuilder
impl InspectableBuilder for SequenceBuilder
Source§impl SchemaBuilder for SequenceBuilder
impl SchemaBuilder for SequenceBuilder
Source§impl ValidatableBuilder for SequenceBuilder
impl ValidatableBuilder for SequenceBuilder
Auto Trait Implementations§
impl Freeze for SequenceBuilder
impl RefUnwindSafe for SequenceBuilder
impl Send for SequenceBuilder
impl Sync for SequenceBuilder
impl Unpin for SequenceBuilder
impl UnsafeUnpin for SequenceBuilder
impl UnwindSafe for SequenceBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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>
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>
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 more