pub struct SequenceInfo {
pub ty: u32,
pub start: i64,
pub increment: i64,
pub max: i64,
pub min: i64,
pub cache: i64,
pub cycle: bool,
pub file: u32,
pub data: SequenceData,
}Expand description
The facts of a sequence, one row of pg_sequence.
Fields§
§ty: u32The OID of the type of the values.
start: i64The first value.
increment: i64The step.
max: i64The largest value.
min: i64The smallest value.
cache: i64The number of values to cache.
cycle: boolTrue when the sequence starts again after its last value.
file: u32The file of the sequence, relfilenode. Catalog::create_sequence sets it to the OID of the sequence, and a rewrite of ALTER SEQUENCE gives a new file.
data: SequenceDataThe row of the file when the statement made the file. nextval and setval change the row outside of the transactions, so the session keeps the row of a file after the first change.
Trait Implementations§
Source§impl Clone for SequenceInfo
impl Clone for SequenceInfo
Source§impl Debug for SequenceInfo
impl Debug for SequenceInfo
impl Eq for SequenceInfo
Source§impl PartialEq for SequenceInfo
impl PartialEq for SequenceInfo
impl StructuralPartialEq for SequenceInfo
Auto Trait Implementations§
impl Freeze for SequenceInfo
impl RefUnwindSafe for SequenceInfo
impl Send for SequenceInfo
impl Sync for SequenceInfo
impl Unpin for SequenceInfo
impl UnsafeUnpin for SequenceInfo
impl UnwindSafe for SequenceInfo
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