pub struct SequenceData {
pub last_value: i64,
pub log_cnt: i64,
pub is_called: bool,
}Expand description
The row of the file of a sequence, FormData_pg_sequence_data.
Fields§
§last_value: i64The last value that a call fetched, or the next value when is_called is false.
log_cnt: i64The number of values that the session can fetch before it writes the next WAL record.
is_called: boolFalse when the next call of nextval gives last_value itself.
Implementations§
Source§impl SequenceData
impl SequenceData
Sourcepub fn new(last_value: i64) -> SequenceData
pub fn new(last_value: i64) -> SequenceData
The row of a new file: last_value is the value that the next call gives.
Trait Implementations§
Source§impl Clone for SequenceData
impl Clone for SequenceData
impl Copy for SequenceData
Source§impl Debug for SequenceData
impl Debug for SequenceData
impl Eq for SequenceData
Source§impl PartialEq for SequenceData
impl PartialEq for SequenceData
impl StructuralPartialEq for SequenceData
Auto Trait Implementations§
impl Freeze for SequenceData
impl RefUnwindSafe for SequenceData
impl Send for SequenceData
impl Sync for SequenceData
impl Unpin for SequenceData
impl UnsafeUnpin for SequenceData
impl UnwindSafe for SequenceData
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