Skip to main content

Module index_custom_name

Module index_custom_name 

Source

Functions§

index_custom_name_default_unchanged
Without name = "...", the schema builder still produces the auto-generated index_<table>_by_<cols> form. Sanity check that the custom-name path doesn’t accidentally suppress all auto-naming.
index_custom_name_overrides_default
#[index(name = "...", ...)] overrides the auto-generated index name in the DB schema, and the index is still usable for queries.
key_custom_name_recorded_on_pk_index
#[key(name = "...", ...)] records the custom name on the primary-key index in the DB schema. SQL backends emit primary keys inline today, so this verifies the schema-internal wiring rather than DDL output.