#[repr(C)]
pub struct sequence_definition {
Show 18 fields pub reserved_until: longlong, pub min_value: longlong, pub max_value: longlong, pub start: longlong, pub min_value_from_parser: Longlong_hybrid, pub max_value_from_parser: Longlong_hybrid, pub start_from_parser: Longlong_hybrid, pub increment: longlong, pub cache: longlong, pub round: ulonglong, pub restart: longlong, pub restart_from_parser: Longlong_hybrid, pub cycle: bool, pub used_fields: uint, pub value_type: Type, pub is_unsigned: bool, pub real_increment: longlong, pub next_free_value: longlong,
}
Expand description

sequence_definition is used when defining a sequence as part of create

Fields§

§reserved_until: longlong§min_value: longlong§max_value: longlong§start: longlong§min_value_from_parser: Longlong_hybrid§max_value_from_parser: Longlong_hybrid§start_from_parser: Longlong_hybrid§increment: longlong§cache: longlong§round: ulonglong§restart: longlong§restart_from_parser: Longlong_hybrid§cycle: bool§used_fields: uint§value_type: Type§is_unsigned: bool§real_increment: longlong§next_free_value: longlong

Implementations§

source§

impl sequence_definition

source

pub unsafe fn value_type_handler(&mut self) -> *const Type_handler

source

pub unsafe fn value_type_max(&mut self) -> longlong

source

pub unsafe fn value_type_min(&mut self) -> longlong

source

pub unsafe fn check_and_adjust( &mut self, thd: *mut THD, set_reserved_until: bool ) -> bool

source

pub unsafe fn store_fields(&mut self, table: *mut TABLE)

source

pub unsafe fn read_fields(&mut self, table: *mut TABLE)

source

pub unsafe fn write_initial_sequence(&mut self, table: *mut TABLE) -> c_int

source

pub unsafe fn write(&mut self, table: *mut TABLE, all_fields: bool) -> c_int

source

pub unsafe fn adjust_values(&mut self, next_value: longlong)

source

pub unsafe fn truncate_value( &mut self, original: *const Longlong_hybrid ) -> longlong

source

pub unsafe fn is_allowed_value_type(type_: Type) -> bool

source

pub unsafe fn prepare_sequence_fields( &mut self, fields: *mut List, alter: bool ) -> bool

Trait Implementations§

source§

impl Debug for sequence_definition

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.