-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sorting for constraints and indexes when generating code. (#7695)
Sorts constraints and indexes by the text of their expressions. For example, given a schema: ``` type Foo { constraint exclusive on ('C'); constraint exclusive on ('A'); constraint exclusive on ('D); constraint exclusive on ('B'); }; ``` The query `describe schema as sdl` will list the constraints sorted alphabetically: ``` module default { type Foo { constraint std::exclusive on ('A'); constraint std::exclusive on ('B'); constraint std::exclusive on ('C'); constraint std::exclusive on ('D'); }; }; ```
- Loading branch information
Showing
2 changed files
with
1,132 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.