Defining composite and unique indexes #1608
-
How do you define a composite index in EdgeDB?
but I couldn't find a way to reference multiple properties in an index. How do you define a unique index in EdgeDB? For simple properties you can add
However you can't add |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Use a tuple, like this:
You can use any (scalar) expression inside the parentheses, actually.
Recent nighlies have the ability to define constraints on types:
|
Beta Was this translation helpful? Give feedback.
Use a tuple, like this:
You can use any (scalar) expression inside the parentheses, actually.
Recent nighlies have the ability to define constraints on types: