Struct mariadb_sys::sequence_definition
source · #[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
impl sequence_definition
pub unsafe fn value_type_handler(&mut self) -> *const Type_handler
pub unsafe fn value_type_max(&mut self) -> longlong
pub unsafe fn value_type_min(&mut self) -> longlong
pub unsafe fn check_and_adjust( &mut self, thd: *mut THD, set_reserved_until: bool ) -> bool
pub unsafe fn store_fields(&mut self, table: *mut TABLE)
pub unsafe fn read_fields(&mut self, table: *mut TABLE)
pub unsafe fn write_initial_sequence(&mut self, table: *mut TABLE) -> c_int
pub unsafe fn write(&mut self, table: *mut TABLE, all_fields: bool) -> c_int
pub unsafe fn adjust_values(&mut self, next_value: longlong)
pub unsafe fn truncate_value( &mut self, original: *const Longlong_hybrid ) -> longlong
pub unsafe fn is_allowed_value_type(type_: Type) -> bool
pub unsafe fn prepare_sequence_fields( &mut self, fields: *mut List, alter: bool ) -> bool
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for sequence_definition
impl Send for sequence_definition
impl Sync for sequence_definition
impl Unpin for sequence_definition
impl UnwindSafe for sequence_definition
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