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

source

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

source

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

source

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

source

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

source

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

source

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

source

pub unsafe fn next_value( &mut self, table: *mut TABLE, second_round: bool, error: *mut c_int ) -> longlong

source

pub unsafe fn set_value( &mut self, table: *mut TABLE, next_value: longlong, round_arg: ulonglong, is_used: bool ) -> c_int

source

pub unsafe fn new() -> Self

source

pub unsafe fn destruct(&mut self)

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.