rust-query icon indicating copy to clipboard operation
rust-query copied to clipboard

New attribute for tables that allow deleting

Open LHolten opened this issue 1 month ago • 0 comments

Foreign keys to tables that allow deleting should have an index. This is important to make deleting efficient. Note that this is already implied by #[no_reference], maybe the new attribute should be #[no_reference(without_index)]

We could rename:

  • #[delete]
  • #[no_reference] => #[delete(no_reference)]

Either the index is added automatically, or the user needs to add the #[index] attribute. Having the manual annotation makes it more clear which indices exist and can be used.

LHolten avatar Nov 21 '25 21:11 LHolten