Versions in this module Expand all Collapse all v1 v1.17.2 Mar 11, 2023 v1.16.0 Nov 17, 2022 Changes in this version + var ErrInvalidQueryParameterLimit = errors.New("invalid query parameter limit") type SQLGo + EmitPointersForNullTypes bool + InflectionExcludeTableNames []string v1.15.0 Aug 15, 2022 Changes in this version type Engine + const EngineSQLite v1.14.1 Jun 20, 2022 v1.14.0 Jun 14, 2022 Changes in this version + 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 + Kotlin SQLKotlin + Overrides []Override + Package SQL + Python SQLPython + 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 EngineXLemon + type Gen struct + Go *GenGo + Kotlin *GenKotlin + type GenGo struct + Overrides []Override + Rename map[string]string + type GenKotlin struct + 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 + PythonType PythonType + 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 + Kotlin *SQLKotlin + Python *SQLPython + type SQLGo struct + EmitAllEnumValues bool + EmitDBTags bool + EmitEmptySlices bool + EmitEnumValidMethod bool + EmitExactTableNames bool + EmitExportedQueries bool + EmitInterface bool + EmitJSONTags bool + EmitMethodsWithDBArgument bool + EmitParamsStructPointers bool + EmitPreparedQueries bool + EmitResultStructPointers bool + 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 SQLKotlin struct + EmitExactTableNames bool + Out string + Package string + type SQLPython struct + EmitAsyncQuerier bool + EmitExactTableNames bool + EmitPydanticModels bool + EmitSyncQuerier bool + Out string + Overrides []Override + Package 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