Skip to content

Commit

Permalink
add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmbenton committed Oct 26, 2023
1 parent 491bfe0 commit 750a384
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cmd/shim.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ func pluginOverride(r *compiler.Result, o config.Override) *plugin.Override {
}

func pluginSettings(r *compiler.Result, cs config.CombinedSettings) *plugin.Settings {
var overrides []*plugin.Override
var over []*plugin.Override
for _, o := range cs.Overrides {
overrides = append(overrides, pluginOverride(r, o))
over = append(over, pluginOverride(r, o))
}
return &plugin.Settings{
Version: cs.Global.Version,
Engine: string(cs.Package.Engine),
Schema: []string(cs.Package.Schema),
Queries: []string(cs.Package.Queries),
Overrides: overrides,
Overrides: over,
Rename: cs.Rename,
Codegen: pluginCodegen(cs, cs.Codegen),
}
Expand Down
1 change: 1 addition & 0 deletions internal/codegen/golang/opts/go_type.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copied from github.com/sqlc-dev/sqlc/internal/config/go_type.go with minor changes to ParsedGoType
package opts

import (
Expand Down
1 change: 1 addition & 0 deletions internal/codegen/golang/opts/override.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copied from github.com/sqlc-dev/sqlc/internal/config/override.go and removed Engine field from Override
package opts

import (
Expand Down
1 change: 1 addition & 0 deletions internal/codegen/golang/opts/plugin_override.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Extracted from github.com/sqlc-dev/sqlc/internal/cmd/shim.go
package opts

import (
Expand Down

0 comments on commit 750a384

Please sign in to comment.