Versions in this module Expand all Collapse all v1 v1.26.0 Mar 28, 2024 Changes in this version + const SQLDriverGoSQLDriverMySQL + const SQLDriverLibPQ + const SQLDriverPGXV4 + const SQLDriverPGXV5 + const SQLPackagePGXV4 + const SQLPackagePGXV5 + const SQLPackageStandard + type SQLDriver string + func (d SQLDriver) IsGoSQLDriverMySQL() bool + func (d SQLDriver) IsPGX() bool + func (d SQLDriver) Package() string v1.25.0 Jan 4, 2024 Changes in this version type Options + EmitSqlAsComment bool + OmitSqlcVersion bool v1.24.0 Nov 22, 2023 Changes in this version + func ValidateOpts(opts *Options) error + type GlobalOptions struct + Overrides []Override + Rename map[string]string + type GoStructTag string + type GoType struct + BuiltIn bool + Name string + Package string + Path string + Pointer bool + Slice bool + Spec string + func (o *GoType) MarshalJSON() ([]byte, error) + func (o *GoType) UnmarshalJSON(data []byte) error + func (o *GoType) UnmarshalYAML(unmarshal func(interface{}) error) error + type Options struct + BuildTags string + 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 + InflectionExcludeTableNames []string + JsonTagsCaseStyle string + JsonTagsIdUppercase bool + OmitUnusedStructs bool + Out string + OutputBatchFileName string + OutputCopyfromFileName string + OutputDbFileName string + OutputFilesSuffix string + OutputModelsFileName string + OutputQuerierFileName string + Overrides []Override + Package string + QueryParameterLimit *int32 + Rename map[string]string + SqlDriver string + SqlPackage string + func Parse(req *plugin.GenerateRequest) (*Options, error) + type Override struct + Column string + ColumnName *pattern.Match + DBType string + Deprecated_Null bool + Deprecated_PostgresType string + Engine string + GoBasicType bool + GoImportPath string + GoPackage string + GoStructTag GoStructTag + GoStructTags map[string]string + GoType GoType + GoTypeName string + Nullable bool + ShimOverride *ShimOverride + TableCatalog *pattern.Match + TableRel *pattern.Match + TableSchema *pattern.Match + Unsigned bool + func (o *Override) Matches(n *plugin.Identifier, defaultSchema string) bool + type ParsedGoType struct + BasicType bool + ImportPath string + Package string + StructTag string + TypeName string + type ShimGoType struct + BasicType bool + ImportPath string + Package string + StructTags map[string]string + TypeName string + type ShimOverride struct + Column string + ColumnName string + DbType string + GoType *ShimGoType + Nullable bool + Table *plugin.Identifier + Unsigned bool