ForValues in sqlparser::ast - Rust

pub enum ForValues {
    In(Vec<Expr>),
    From {
        from: Vec<PartitionBoundValue>,
        to: Vec<PartitionBoundValue>,
    },
    With {
        modulus: u64,
        remainder: u64,
    },
    Default,
}
Expand description

PostgreSQL partition bound specification for PARTITION OF.

Specifies partition bounds for a child partition table.

See PostgreSQL

§

FOR VALUES IN (expr, ...)

§

FOR VALUES FROM (expr|MINVALUE|MAXVALUE, ...) TO (expr|MINVALUE|MAXVALUE, ...)

Fields

The lower bound values for the partition.

The upper bound values for the partition.

§

FOR VALUES WITH (MODULUS n, REMAINDER r)

Fields

The modulus value for hash partitioning.

§remainder: u64

The remainder value for hash partitioning.

§

DEFAULT

§
§
§
§
§
§