MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / pluginSettings

Function pluginSettings

internal/cmd/shim.go:12–20  ·  view source on GitHub ↗
(r *compiler.Result, cs config.CombinedSettings)

Source from the content-addressed store, hash-verified

10)
11
12func pluginSettings(r *compiler.Result, cs config.CombinedSettings) *plugin.Settings {
13 return &plugin.Settings{
14 Version: cs.Global.Version,
15 Engine: string(cs.Package.Engine),
16 Schema: []string(cs.Package.Schema),
17 Queries: []string(cs.Package.Queries),
18 Codegen: pluginCodegen(cs, cs.Codegen),
19 }
20}
21
22func pluginCodegen(cs config.CombinedSettings, s config.Codegen) *plugin.Codegen {
23 opts, err := convert.YAMLtoJSON(s.Options)

Callers 1

codeGenRequestFunction · 0.85

Calls 1

pluginCodegenFunction · 0.85

Tested by

no test coverage detected