diff --git a/internal/codegen/golang/opts/override.go b/internal/codegen/golang/opts/override.go index 6916c0c7f3..cf2ac1de89 100644 --- a/internal/codegen/golang/opts/override.go +++ b/internal/codegen/golang/opts/override.go @@ -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 diff --git a/internal/codegen/golang/struct.go b/internal/codegen/golang/struct.go index 9845c0c4fb..a25c4e0369 100644 --- a/internal/codegen/golang/struct.go +++ b/internal/codegen/golang/struct.go @@ -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() diff --git a/internal/compiler/selector.go b/internal/compiler/selector.go index 115c9eb835..ff13db7b19 100644 --- a/internal/compiler/selector.go +++ b/internal/compiler/selector.go @@ -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{} diff --git a/internal/engine/sqlite/stdlib.go b/internal/engine/sqlite/stdlib.go index 89b7af2e92..a301a3fa8c 100644 --- a/internal/engine/sqlite/stdlib.go +++ b/internal/engine/sqlite/stdlib.go @@ -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"}, diff --git a/protos/plugin/codegen.proto b/protos/plugin/codegen.proto index e6faf19bad..bdb5bcf851 100644 --- a/protos/plugin/codegen.proto +++ b/protos/plugin/codegen.proto @@ -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;