Skip to main content

define_partition_key

Function define_partition_key 

Source
pub fn define_partition_key(
    partition: &KeyPartition<'_>,
    key: &TableKeyConstraint,
) -> Result<PartitionKeyIndex, SQLError>
Expand description

A partition with an equivalent key adopts it. For any other partition DefineIndex builds a new index: a primary key must not meet the partition’s own primary key, and the key must hold the partition’s own partition key columns.