Versions in this module Expand all Collapse all v1 v1.0.6 Apr 5, 2023 v1.0.5 Apr 5, 2023 v1.0.4 Apr 5, 2023 v1.0.3 Apr 5, 2023 v1.0.2 Apr 5, 2023 v1.0.1 Apr 5, 2023 v0 v0.0.8 Apr 6, 2023 v0.0.7 Apr 6, 2023 Changes in this version + var ErrInvalidQueryParameterLimit = errors.New("invalid query parameter limit") + var ErrMissingEngine = errors.New("unknown engine") + var ErrMissingVersion = errors.New("no version number") + var ErrNoOutPath = errors.New("no output path") + var ErrNoPackageName = errors.New("missing package name") + 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: both `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 Codegen struct + Options yaml.Node + Out string + Plugin string + type CombinedSettings struct + Codegen Codegen + Global Config + Go SQLGo + JSON SQLJSON + Overrides []Override + Package SQL + Rename map[string]string + func Combine(conf Config, pkg SQL) CombinedSettings + type Config struct + Gen Gen + Plugins []Plugin + Project Project + SQL []SQL + Version string + func ParseConfig(rd io.Reader) (Config, error) + type Engine string + const EngineMySQL + const EnginePostgreSQL + const EngineSQLite + type Gen struct + Go *GenGo + type GenGo struct + Overrides []Override + Rename map[string]string + type GoStructTag string + func (s GoStructTag) Parse() (map[string]string, error) + type GoType struct + BuiltIn bool + Name string + Package string + Path string + Pointer bool + Spec string + func (gt GoType) Parse() (*ParsedGoType, error) + func (o *GoType) UnmarshalJSON(data []byte) error + func (o *GoType) UnmarshalYAML(unmarshal func(interface{}) error) error + type Override struct + Column string + ColumnName *pattern.Match + DBType string + Deprecated_Null bool + Deprecated_PostgresType string + Engine Engine + GoBasicType bool + GoImportPath string + GoPackage string + GoStructTag GoStructTag + GoStructTags map[string]string + GoType GoType + GoTypeName string + Nullable bool + TableCatalog *pattern.Match + TableRel *pattern.Match + TableSchema *pattern.Match + func (o *Override) Matches(n *ast.TableName, defaultSchema string) bool + func (o *Override) Parse() (err error) + type ParsedGoType struct + BasicType bool + ImportPath string + Package string + StructTag string + TypeName string + type Paths []string + func (p *Paths) UnmarshalJSON(data []byte) error + func (p *Paths) UnmarshalYAML(unmarshal func(interface{}) error) error + type Plugin struct + Name string + Process ... + WASM ... + type Project struct + ID string + type PythonType struct + Module string + Name string + func (t PythonType) IsSet() bool + func (t PythonType) TypeString() string + type SQL struct + Codegen []Codegen + Engine Engine + Gen SQLGen + Queries Paths + Schema Paths + StrictFunctionChecks bool + type SQLGen struct + Go *SQLGo + JSON *SQLJSON + type SQLGo struct + EmitAllEnumValues bool + EmitDBTags bool + EmitEmptySlices bool + EmitEnumValidMethod bool + EmitExactTableNames bool + EmitExportedQueries bool + EmitInterface bool + EmitJSONTags bool + EmitMethodsWithDBArgument bool + EmitParamsStructPointers bool + EmitPointersForNullTypes bool + EmitPreparedQueries bool + EmitResultStructPointers bool + EnableOpenTracing bool + InflectionExcludeTableNames []string + JSONTagsCaseStyle string + Out string + OutputDBFileName string + OutputFilesSuffix string + OutputModelsFileName string + OutputQuerierFileName string + Overrides []Override + Package string + Rename map[string]string + SQLPackage string + type SQLJSON struct + Filename string + Indent string + Out string + type V1GenerateSettings struct + Overrides []Override + Packages []v1PackageSettings + Project Project + Rename map[string]string + Version string + func (c *V1GenerateSettings) Translate() Config + func (c *V1GenerateSettings) ValidateGlobalOverrides() error