Versions in this module Expand all Collapse all v1 v1.26.3 Jun 20, 2024 Changes in this version + var ErrInvalidDatabase = errors.New("database must be managed or have a non-empty URI") + var ErrManagedDatabaseNoAuthToken = errors.New(...) + var ErrManagedDatabaseNoProject = errors.New(...) + var ErrMissingEngine = errors.New("unknown engine") + var ErrMissingVersion = errors.New("no version number") + var ErrNoOutPath = errors.New("no output path") + var ErrNoPackagePath = errors.New("missing package path") + var ErrNoPackages = errors.New("no packages") + var ErrNoQuerierType = errors.New("no querier emit type enabled") + var ErrPluginBothTypes = errors.New("plugin: `process` and `wasm` cannot both be defined") + var ErrPluginBuiltin = errors.New("a built-in plugin with that name already exists") + var ErrPluginExists = errors.New("a plugin with that name already exists") + var ErrPluginNoName = errors.New("missing plugin name") + var ErrPluginNoType = errors.New("plugin: field `process` or `wasm` required") + var ErrPluginNotFound = errors.New("no plugin found") + var ErrPluginProcessNoCmd = errors.New("plugin: missing process command") + var ErrUnknownEngine = errors.New("invalid engine") + var ErrUnknownVersion = errors.New("invalid version number") + func Validate(c *Config) error + type Analyzer struct + Database *bool + type Cloud struct + AuthToken string + Hostname string + Organization string + Project string + type Codegen struct + Options yaml.Node + Out string + Plugin string + type CombinedSettings struct + Codegen Codegen + Global Config + Go golang.Options + JSON SQLJSON + Package SQL + func Combine(conf Config, pkg SQL) CombinedSettings + type Config struct + Cloud Cloud + Options map[string]yaml.Node + Overrides Overrides + Plugins []Plugin + Rules []Rule + SQL []SQL + Version string + func ParseConfig(rd io.Reader) (Config, error) + type Database struct + Managed bool + URI string + type Engine string + const EngineMySQL + const EnginePostgreSQL + const EngineSQLite + type Overrides struct + Go *golang.GlobalOptions + type Paths []string + func (p *Paths) UnmarshalJSON(data []byte) error + func (p *Paths) UnmarshalYAML(unmarshal func(interface{}) error) error + type Plugin struct + Env []string + Name string + Process ... + WASM ... + type Rule struct + Msg string + Name string + Rule string + type SQL struct + Analyzer Analyzer + Codegen []Codegen + Database *Database + Engine Engine + Gen SQLGen + Name string + Queries Paths + Rules []string + Schema Paths + StrictFunctionChecks bool + StrictOrderBy *bool + type SQLGen struct + Go *golang.Options + JSON *SQLJSON + type SQLJSON struct + Filename string + Indent string + Out string + type V1GenerateSettings struct + Cloud Cloud + Overrides []golang.Override + Packages []v1PackageSettings + Rename map[string]string + Rules []Rule + Version string + func (c *V1GenerateSettings) Translate() Config + func (c *V1GenerateSettings) ValidateGlobalOverrides() error