Skip to main content

transform_declared_keys

Function transform_declared_keys 

Source
pub fn transform_declared_keys(
    context: &InheritanceContext<'_>,
    table: &mut CreateTable,
) -> Result<(), SQLError>
Expand description

Validate the keys a CREATE TABLE declares, in declaration order, then order them as transformIndexConstraints does: the primary key first, and a key whose index would repeat an earlier key’s index dropped, giving its name to that key when the earlier key has none.