pub struct Sequence {
pub schema: Cow<'static, str>,
pub name: Cow<'static, str>,
pub increment_by: Option<Cow<'static, str>>,
pub min_value: Option<Cow<'static, str>>,
pub max_value: Option<Cow<'static, str>>,
pub start_with: Option<Cow<'static, str>>,
pub cache_size: Option<i32>,
pub cycle: Option<bool>,
}Expand description
Runtime sequence entity for serde serialization.
Fields§
§schema: Cow<'static, str>Schema name
name: Cow<'static, str>Sequence name
increment_by: Option<Cow<'static, str>>Increment value
min_value: Option<Cow<'static, str>>Minimum value
max_value: Option<Cow<'static, str>>Maximum value
start_with: Option<Cow<'static, str>>Start value
cache_size: Option<i32>Cache size
cycle: Option<bool>Cycle flag
Implementations§
Source§impl Sequence
impl Sequence
Sourcepub fn create_sequence_sql(&self) -> String
pub fn create_sequence_sql(&self) -> String
Generate CREATE SEQUENCE SQL
Sourcepub fn drop_sequence_sql(&self) -> String
pub fn drop_sequence_sql(&self) -> String
Generate DROP SEQUENCE SQL
Trait Implementations§
Source§impl From<SequenceDef> for Sequence
impl From<SequenceDef> for Sequence
Source§fn from(def: SequenceDef) -> Self
fn from(def: SequenceDef) -> Self
Converts to this type from the input type.
impl Eq for Sequence
impl StructuralPartialEq for Sequence
Auto Trait Implementations§
impl Freeze for Sequence
impl RefUnwindSafe for Sequence
impl Send for Sequence
impl Sync for Sequence
impl Unpin for Sequence
impl UnwindSafe for Sequence
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