FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: correct typos in sqlite catalog function names and comments by maxtaran2010 · Pull Request #4507 · sqlc-dev/sqlc · GitHub

/ sqlc Public
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .go  (4) .proto  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 1 addition & 1 deletion internal/codegen/golang/opts/override.go
This file contains hidden or 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
Expand Up @@ -28,7 +28,7 @@ type Override struct {
// True if the GoType should override if the matching type is nullable
Nullable bool `json:"nullable" yaml:"nullable"`

// True if the GoType should override if the matching type is unsiged.
// True if the GoType should override if the matching type is unsigned.
Unsigned bool `json:"unsigned" yaml:"unsigned"`

// Deprecated. Use the `nullable` property instead
Expand Down
2 changes: 1 addition & 1 deletion internal/codegen/golang/struct.go
This file contains hidden or 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
Expand Up @@ -43,7 +43,7 @@ func StructName(name string, options *opts.Options) string {
}
}

// If a name has a digit as its first char, prepand an underscore to make it a valid Go name.
// If a name has a digit as its first char, prepend an underscore to make it a valid Go name.
r, _ := utf8.DecodeRuneInString(out.String())
if unicode.IsDigit(r) {
return "_" + out.String()
Expand Down
2 changes: 1 addition & 1 deletion internal/compiler/selector.go
This file contains hidden or 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
Expand Up @@ -14,7 +14,7 @@ type selector interface {
ColumnExpr(name string, column *Column) string
}

// defaultSelector is a selector implementation that does the simpliest possible
// defaultSelector is a selector implementation that does the simplest possible
// pass through when generating column expressions. Its use is suitable for all
// database engines not requiring additional customization.
type defaultSelector struct{}
Expand Down
4 changes: 2 additions & 2 deletions internal/engine/sqlite/stdlib.go
This file contains hidden or 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
Expand Up @@ -670,12 +670,12 @@ func defaultSchema(name string) *catalog.Schema {
ReturnType: &ast.TypeName{Name: "text"},
},
{
Name: "RAMDOM",
Name: "RANDOM",
Args: []*catalog.Argument{},
ReturnType: &ast.TypeName{Name: "integer"},
},
{
Name: "RAMDOMBLOB",
Name: "RANDOMBLOB",
Args: []*catalog.Argument{
{
Type: &ast.TypeName{Name: "integer"},
Expand Down
2 changes: 1 addition & 1 deletion protos/plugin/codegen.proto
This file contains hidden or 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
Expand Up @@ -13,7 +13,7 @@ message File {

message Settings {
// Rename message was field 5
// Overides message was field 6
// Overrides message was field 6
// PythonCode message was field 8
// KotlinCode message was field 9
// GoCode message was field 10;
Expand Down
Loading

Back | FazBrowse Home | New Git URL