-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert <entity-name> to upper camel case.
Previous, we only capitalized the names which worked great unless they contained underscores. Was became `ListZipcode_imports` now becomes `ListZipcodeImports` which improves function and type names generates by sqlc.
- Loading branch information
Showing
3 changed files
with
20 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
## Installation | ||
|
||
``` | ||
$ go install github.com/ngrash/sqlcup/cmd/[email protected].1 | ||
$ go install github.com/ngrash/sqlcup/cmd/[email protected].2 | ||
``` | ||
|
||
## Usage | ||
|
@@ -19,8 +19,8 @@ Synopsis: | |
Description: | ||
sqlcup prints SQL statements to stdout. The <entity-name> argument must be | ||
of the form <singular-name>/<plural-name>. sqlcup capitalizes those names | ||
where necessary. | ||
of the form <singular-name>/<plural-name>. sqlcup converts those names to | ||
upper camel case where necessary. | ||
Each column argument given to sqlcup defines a database column and must | ||
be either a <plain-column> or a <smart-column>: | ||
|
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