Struct mariadb_sys::SEQUENCE
source · #[repr(C)]pub struct SEQUENCE {
pub _base: sequence_definition,
pub all_values_used: bool,
pub initialized: Type,
pub mutex: mysql_rwlock_t,
}
Expand description
SEQUENCE is in charge of managing the sequence values. It’s also responsible to generate new values and updating the sequence table (engine=SQL_SEQUENCE) trough it’s specialized handler interface.
If increment is 0 then the sequence will be be using auto_increment_increment and auto_increment_offset variables, just like AUTO_INCREMENT is using.
Fields§
§_base: sequence_definition
§all_values_used: bool
§initialized: Type
§mutex: mysql_rwlock_t
Implementations§
source§impl SEQUENCE
impl SEQUENCE
pub unsafe fn read_initial_values(&mut self, table: *mut TABLE) -> c_int
pub unsafe fn read_stored_values(&mut self, table: *mut TABLE) -> c_int
pub unsafe fn write_lock(&mut self, table: *mut TABLE)
pub unsafe fn write_unlock(&mut self, table: *mut TABLE)
pub unsafe fn read_lock(&mut self, table: *mut TABLE)
pub unsafe fn read_unlock(&mut self, table: *mut TABLE)
pub unsafe fn next_value( &mut self, table: *mut TABLE, second_round: bool, error: *mut c_int ) -> longlong
pub unsafe fn set_value( &mut self, table: *mut TABLE, next_value: longlong, round_arg: ulonglong, is_used: bool ) -> c_int
pub unsafe fn new() -> Self
pub unsafe fn destruct(&mut self)
Auto Trait Implementations§
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