pub fn define_declared_keys(
indexes: ConstraintIndexNamer<'_>,
table: &mut CreateTable,
inherited: &InheritedDefinitions,
allocate: &mut CatalogIdentityAllocator<'_>,
) -> Result<(), SQLError>Expand description
Define the keys the table declares as DefineIndex does once the table’s CHECK and NOT NULL constraints exist: each key, primary key first, against an inherited primary key, the partition key and its index attributes. Each key’s index is named after its checks, so a later key’s errors follow an earlier key’s name conflict, and no index takes a name a constraint of the table holds; the index then takes its OID and the constraint its own.