-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add -mixedcaps option to edgeql-go (#262)
The new `-mixedcaps` option changes snake_case names in shapes to MixedCaps names in go structs. ``` select User { first_name, last_name, } ``` Becomes: ```go type MyQueryResult struct { FirstName string `edgedb:"first_name"` LastName string `edgedb:"last_name"` } ``` Without this option enabled names are used exactly as they appear in shapes. For example the query above would produce the following struct: ```go type MyQueryResult struct { first_name string `edgedb:"first_name"` last_name string `edgedb:"last_name"` } ``` working on #245
- Loading branch information
Showing
75 changed files
with
1,319 additions
and
85 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
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
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
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.