pub struct SequenceDef {Show 13 fields
pub name: String,
pub data_type: SequenceDataType,
pub start: i64,
pub increment: i64,
pub min_value: i64,
pub max_value: i64,
pub cache: i64,
pub cycle: bool,
pub owned_by: Option<(String, String)>,
pub last_value: i64,
pub is_called: bool,
pub owner: Option<String>,
pub acl: Vec<AclItem>,
}Expand description
v7.17.0 — catalogued SEQUENCE. PG semantics: a counter object
returning monotonically increasing values via nextval(name).
last_value is the most recent value handed out; is_called
is false until the first nextval/setval. Stored separately
from tables in the catalog.
Fields§
§name: String§data_type: SequenceDataTypeData type — narrows the i64 range. PG default BIGINT.
start: i64§increment: i64§min_value: i64§max_value: i64§cache: i64§cycle: bool§owned_by: Option<(String, String)>OWNED BY target — (table, column) or NONE.
last_value: i64Most recently handed-out value. Meaningless when
is_called == false; in that case the NEXT nextval
will return start.
is_called: bool§owner: Option<String>v7.39 (read01 round 60) — the role that ran CREATE SEQUENCE. None = an
image written before FILE_VERSION 66, which predates sequence owners.
acl: Vec<AclItem>v7.39 (read01 round 60) — explicit GRANTs on this sequence. A sequence’s
meaningful privileges are SELECT (currval), UPDATE (setval) and
USAGE (nextval).
Trait Implementations§
Source§impl Clone for SequenceDef
impl Clone for SequenceDef
Source§fn clone(&self) -> SequenceDef
fn clone(&self) -> SequenceDef
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more