Versions in this module Expand all Collapse all v1 v1.13.1 May 10, 2022 Changes in this version + var ErrIntOverflow = fmt.Errorf("proto: integer overflow") + var ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") + var File_plugin_codegen_proto protoreflect.FileDescriptor + type Catalog struct + Comment string + DefaultSchema string + Name string + Schemas []*Schema + func (*Catalog) Descriptor() ([]byte, []int) + func (*Catalog) ProtoMessage() + func (m *Catalog) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *Catalog) MarshalToVT(dAtA []byte) (int, error) + func (m *Catalog) MarshalVT() (dAtA []byte, err error) + func (m *Catalog) SizeVT() (n int) + func (m *Catalog) UnmarshalVT(dAtA []byte) error + func (x *Catalog) GetComment() string + func (x *Catalog) GetDefaultSchema() string + func (x *Catalog) GetName() string + func (x *Catalog) GetSchemas() []*Schema + func (x *Catalog) ProtoReflect() protoreflect.Message + func (x *Catalog) Reset() + func (x *Catalog) String() string + type CodeGenRequest struct + Catalog *Catalog + Queries []*Query + Settings *Settings + SqlcVersion string + func (*CodeGenRequest) Descriptor() ([]byte, []int) + func (*CodeGenRequest) ProtoMessage() + func (m *CodeGenRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *CodeGenRequest) MarshalToVT(dAtA []byte) (int, error) + func (m *CodeGenRequest) MarshalVT() (dAtA []byte, err error) + func (m *CodeGenRequest) SizeVT() (n int) + func (m *CodeGenRequest) UnmarshalVT(dAtA []byte) error + func (x *CodeGenRequest) GetCatalog() *Catalog + func (x *CodeGenRequest) GetQueries() []*Query + func (x *CodeGenRequest) GetSettings() *Settings + func (x *CodeGenRequest) GetSqlcVersion() string + func (x *CodeGenRequest) ProtoReflect() protoreflect.Message + func (x *CodeGenRequest) Reset() + func (x *CodeGenRequest) String() string + type CodeGenResponse struct + Files []*File + func (*CodeGenResponse) Descriptor() ([]byte, []int) + func (*CodeGenResponse) ProtoMessage() + func (m *CodeGenResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *CodeGenResponse) MarshalToVT(dAtA []byte) (int, error) + func (m *CodeGenResponse) MarshalVT() (dAtA []byte, err error) + func (m *CodeGenResponse) SizeVT() (n int) + func (m *CodeGenResponse) UnmarshalVT(dAtA []byte) error + func (x *CodeGenResponse) GetFiles() []*File + func (x *CodeGenResponse) ProtoReflect() protoreflect.Message + func (x *CodeGenResponse) Reset() + func (x *CodeGenResponse) String() string + type Column struct + Comment string + IsArray bool + IsFuncCall bool + IsNamedParam bool + Length int32 + Name string + NotNull bool + Scope string + Table *Identifier + TableAlias string + Type *Identifier + func (*Column) Descriptor() ([]byte, []int) + func (*Column) ProtoMessage() + func (m *Column) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *Column) MarshalToVT(dAtA []byte) (int, error) + func (m *Column) MarshalVT() (dAtA []byte, err error) + func (m *Column) SizeVT() (n int) + func (m *Column) UnmarshalVT(dAtA []byte) error + func (x *Column) GetComment() string + func (x *Column) GetIsArray() bool + func (x *Column) GetIsFuncCall() bool + func (x *Column) GetIsNamedParam() bool + func (x *Column) GetLength() int32 + func (x *Column) GetName() string + func (x *Column) GetNotNull() bool + func (x *Column) GetScope() string + func (x *Column) GetTable() *Identifier + func (x *Column) GetTableAlias() string + func (x *Column) GetType() *Identifier + func (x *Column) ProtoReflect() protoreflect.Message + func (x *Column) Reset() + func (x *Column) String() string + type CompositeType struct + Comment string + Name string + func (*CompositeType) Descriptor() ([]byte, []int) + func (*CompositeType) ProtoMessage() + func (m *CompositeType) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *CompositeType) MarshalToVT(dAtA []byte) (int, error) + func (m *CompositeType) MarshalVT() (dAtA []byte, err error) + func (m *CompositeType) SizeVT() (n int) + func (m *CompositeType) UnmarshalVT(dAtA []byte) error + func (x *CompositeType) GetComment() string + func (x *CompositeType) GetName() string + func (x *CompositeType) ProtoReflect() protoreflect.Message + func (x *CompositeType) Reset() + func (x *CompositeType) String() string + type Enum struct + Comment string + Name string + Vals []string + func (*Enum) Descriptor() ([]byte, []int) + func (*Enum) ProtoMessage() + func (m *Enum) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *Enum) MarshalToVT(dAtA []byte) (int, error) + func (m *Enum) MarshalVT() (dAtA []byte, err error) + func (m *Enum) SizeVT() (n int) + func (m *Enum) UnmarshalVT(dAtA []byte) error + func (x *Enum) GetComment() string + func (x *Enum) GetName() string + func (x *Enum) GetVals() []string + func (x *Enum) ProtoReflect() protoreflect.Message + func (x *Enum) Reset() + func (x *Enum) String() string + type File struct + Contents []byte + Name string + func (*File) Descriptor() ([]byte, []int) + func (*File) ProtoMessage() + func (m *File) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *File) MarshalToVT(dAtA []byte) (int, error) + func (m *File) MarshalVT() (dAtA []byte, err error) + func (m *File) SizeVT() (n int) + func (m *File) UnmarshalVT(dAtA []byte) error + func (x *File) GetContents() []byte + func (x *File) GetName() string + func (x *File) ProtoReflect() protoreflect.Message + func (x *File) Reset() + func (x *File) String() string + type GoCode struct + EmitDbTags bool + EmitEmptySlices 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 + Package string + SqlPackage string + func (*GoCode) Descriptor() ([]byte, []int) + func (*GoCode) ProtoMessage() + func (m *GoCode) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *GoCode) MarshalToVT(dAtA []byte) (int, error) + func (m *GoCode) MarshalVT() (dAtA []byte, err error) + func (m *GoCode) SizeVT() (n int) + func (m *GoCode) UnmarshalVT(dAtA []byte) error + func (x *GoCode) GetEmitDbTags() bool + func (x *GoCode) GetEmitEmptySlices() bool + func (x *GoCode) GetEmitExactTableNames() bool + func (x *GoCode) GetEmitExportedQueries() bool + func (x *GoCode) GetEmitInterface() bool + func (x *GoCode) GetEmitJsonTags() bool + func (x *GoCode) GetEmitMethodsWithDbArgument() bool + func (x *GoCode) GetEmitParamsStructPointers() bool + func (x *GoCode) GetEmitPreparedQueries() bool + func (x *GoCode) GetEmitResultStructPointers() bool + func (x *GoCode) GetJsonTagsCaseStyle() string + func (x *GoCode) GetOut() string + func (x *GoCode) GetOutputDbFileName() string + func (x *GoCode) GetOutputFilesSuffix() string + func (x *GoCode) GetOutputModelsFileName() string + func (x *GoCode) GetOutputQuerierFileName() string + func (x *GoCode) GetPackage() string + func (x *GoCode) GetSqlPackage() string + func (x *GoCode) ProtoReflect() protoreflect.Message + func (x *GoCode) Reset() + func (x *GoCode) String() string + type Identifier struct + Catalog string + Name string + Schema string + func (*Identifier) Descriptor() ([]byte, []int) + func (*Identifier) ProtoMessage() + func (m *Identifier) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *Identifier) MarshalToVT(dAtA []byte) (int, error) + func (m *Identifier) MarshalVT() (dAtA []byte, err error) + func (m *Identifier) SizeVT() (n int) + func (m *Identifier) UnmarshalVT(dAtA []byte) error + func (x *Identifier) GetCatalog() string + func (x *Identifier) GetName() string + func (x *Identifier) GetSchema() string + func (x *Identifier) ProtoReflect() protoreflect.Message + func (x *Identifier) Reset() + func (x *Identifier) String() string + type JSONCode struct + Indent string + Out string + func (*JSONCode) Descriptor() ([]byte, []int) + func (*JSONCode) ProtoMessage() + func (m *JSONCode) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *JSONCode) MarshalToVT(dAtA []byte) (int, error) + func (m *JSONCode) MarshalVT() (dAtA []byte, err error) + func (m *JSONCode) SizeVT() (n int) + func (m *JSONCode) UnmarshalVT(dAtA []byte) error + func (x *JSONCode) GetIndent() string + func (x *JSONCode) GetOut() string + func (x *JSONCode) ProtoReflect() protoreflect.Message + func (x *JSONCode) Reset() + func (x *JSONCode) String() string + type KotlinCode struct + EmitExactTableNames bool + Out string + Package string + func (*KotlinCode) Descriptor() ([]byte, []int) + func (*KotlinCode) ProtoMessage() + func (m *KotlinCode) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *KotlinCode) MarshalToVT(dAtA []byte) (int, error) + func (m *KotlinCode) MarshalVT() (dAtA []byte, err error) + func (m *KotlinCode) SizeVT() (n int) + func (m *KotlinCode) UnmarshalVT(dAtA []byte) error + func (x *KotlinCode) GetEmitExactTableNames() bool + func (x *KotlinCode) GetOut() string + func (x *KotlinCode) GetPackage() string + func (x *KotlinCode) ProtoReflect() protoreflect.Message + func (x *KotlinCode) Reset() + func (x *KotlinCode) String() string + type Override struct + CodeType string + Column string + ColumnName string + DbType string + GoType *ParsedGoType + Nullable bool + PythonType *PythonType + Table *Identifier + func (*Override) Descriptor() ([]byte, []int) + func (*Override) ProtoMessage() + func (m *Override) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *Override) MarshalToVT(dAtA []byte) (int, error) + func (m *Override) MarshalVT() (dAtA []byte, err error) + func (m *Override) SizeVT() (n int) + func (m *Override) UnmarshalVT(dAtA []byte) error + func (x *Override) GetCodeType() string + func (x *Override) GetColumn() string + func (x *Override) GetColumnName() string + func (x *Override) GetDbType() string + func (x *Override) GetGoType() *ParsedGoType + func (x *Override) GetNullable() bool + func (x *Override) GetPythonType() *PythonType + func (x *Override) GetTable() *Identifier + func (x *Override) ProtoReflect() protoreflect.Message + func (x *Override) Reset() + func (x *Override) String() string + type Parameter struct + Column *Column + Number int32 + func (*Parameter) Descriptor() ([]byte, []int) + func (*Parameter) ProtoMessage() + func (m *Parameter) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *Parameter) MarshalToVT(dAtA []byte) (int, error) + func (m *Parameter) MarshalVT() (dAtA []byte, err error) + func (m *Parameter) SizeVT() (n int) + func (m *Parameter) UnmarshalVT(dAtA []byte) error + func (x *Parameter) GetColumn() *Column + func (x *Parameter) GetNumber() int32 + func (x *Parameter) ProtoReflect() protoreflect.Message + func (x *Parameter) Reset() + func (x *Parameter) String() string + type ParsedGoType struct + BasicType bool + ImportPath string + Package string + TypeName string + func (*ParsedGoType) Descriptor() ([]byte, []int) + func (*ParsedGoType) ProtoMessage() + func (m *ParsedGoType) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *ParsedGoType) MarshalToVT(dAtA []byte) (int, error) + func (m *ParsedGoType) MarshalVT() (dAtA []byte, err error) + func (m *ParsedGoType) SizeVT() (n int) + func (m *ParsedGoType) UnmarshalVT(dAtA []byte) error + func (x *ParsedGoType) GetBasicType() bool + func (x *ParsedGoType) GetImportPath() string + func (x *ParsedGoType) GetPackage() string + func (x *ParsedGoType) GetTypeName() string + func (x *ParsedGoType) ProtoReflect() protoreflect.Message + func (x *ParsedGoType) Reset() + func (x *ParsedGoType) String() string + type PythonCode struct + EmitAsyncQuerier bool + EmitExactTableNames bool + EmitPydanticModels bool + EmitSyncQuerier bool + Out string + Package string + func (*PythonCode) Descriptor() ([]byte, []int) + func (*PythonCode) ProtoMessage() + func (m *PythonCode) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *PythonCode) MarshalToVT(dAtA []byte) (int, error) + func (m *PythonCode) MarshalVT() (dAtA []byte, err error) + func (m *PythonCode) SizeVT() (n int) + func (m *PythonCode) UnmarshalVT(dAtA []byte) error + func (x *PythonCode) GetEmitAsyncQuerier() bool + func (x *PythonCode) GetEmitExactTableNames() bool + func (x *PythonCode) GetEmitPydanticModels() bool + func (x *PythonCode) GetEmitSyncQuerier() bool + func (x *PythonCode) GetOut() string + func (x *PythonCode) GetPackage() string + func (x *PythonCode) ProtoReflect() protoreflect.Message + func (x *PythonCode) Reset() + func (x *PythonCode) String() string + type PythonType struct + Module string + Name string + func (*PythonType) Descriptor() ([]byte, []int) + func (*PythonType) ProtoMessage() + func (m *PythonType) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *PythonType) MarshalToVT(dAtA []byte) (int, error) + func (m *PythonType) MarshalVT() (dAtA []byte, err error) + func (m *PythonType) SizeVT() (n int) + func (m *PythonType) UnmarshalVT(dAtA []byte) error + func (x *PythonType) GetModule() string + func (x *PythonType) GetName() string + func (x *PythonType) ProtoReflect() protoreflect.Message + func (x *PythonType) Reset() + func (x *PythonType) String() string + type Query struct + Cmd string + Columns []*Column + Comments []string + Filename string + InsertIntoTable *Identifier + Name string + Params []*Parameter + Text string + func (*Query) Descriptor() ([]byte, []int) + func (*Query) ProtoMessage() + func (m *Query) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *Query) MarshalToVT(dAtA []byte) (int, error) + func (m *Query) MarshalVT() (dAtA []byte, err error) + func (m *Query) SizeVT() (n int) + func (m *Query) UnmarshalVT(dAtA []byte) error + func (x *Query) GetCmd() string + func (x *Query) GetColumns() []*Column + func (x *Query) GetComments() []string + func (x *Query) GetFilename() string + func (x *Query) GetInsertIntoTable() *Identifier + func (x *Query) GetName() string + func (x *Query) GetParams() []*Parameter + func (x *Query) GetText() string + func (x *Query) ProtoReflect() protoreflect.Message + func (x *Query) Reset() + func (x *Query) String() string + type Schema struct + Comment string + CompositeTypes []*CompositeType + Enums []*Enum + Name string + Tables []*Table + func (*Schema) Descriptor() ([]byte, []int) + func (*Schema) ProtoMessage() + func (m *Schema) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *Schema) MarshalToVT(dAtA []byte) (int, error) + func (m *Schema) MarshalVT() (dAtA []byte, err error) + func (m *Schema) SizeVT() (n int) + func (m *Schema) UnmarshalVT(dAtA []byte) error + func (x *Schema) GetComment() string + func (x *Schema) GetCompositeTypes() []*CompositeType + func (x *Schema) GetEnums() []*Enum + func (x *Schema) GetName() string + func (x *Schema) GetTables() []*Table + func (x *Schema) ProtoReflect() protoreflect.Message + func (x *Schema) Reset() + func (x *Schema) String() string + type Settings struct + Engine string + Go *GoCode + Json *JSONCode + Kotlin *KotlinCode + Overrides []*Override + Python *PythonCode + Queries []string + Rename map[string]string + Schema []string + Version string + func (*Settings) Descriptor() ([]byte, []int) + func (*Settings) ProtoMessage() + func (m *Settings) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *Settings) MarshalToVT(dAtA []byte) (int, error) + func (m *Settings) MarshalVT() (dAtA []byte, err error) + func (m *Settings) SizeVT() (n int) + func (m *Settings) UnmarshalVT(dAtA []byte) error + func (x *Settings) GetEngine() string + func (x *Settings) GetGo() *GoCode + func (x *Settings) GetJson() *JSONCode + func (x *Settings) GetKotlin() *KotlinCode + func (x *Settings) GetOverrides() []*Override + func (x *Settings) GetPython() *PythonCode + func (x *Settings) GetQueries() []string + func (x *Settings) GetRename() map[string]string + func (x *Settings) GetSchema() []string + func (x *Settings) GetVersion() string + func (x *Settings) ProtoReflect() protoreflect.Message + func (x *Settings) Reset() + func (x *Settings) String() string + type Table struct + Columns []*Column + Comment string + Rel *Identifier + func (*Table) Descriptor() ([]byte, []int) + func (*Table) ProtoMessage() + func (m *Table) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *Table) MarshalToVT(dAtA []byte) (int, error) + func (m *Table) MarshalVT() (dAtA []byte, err error) + func (m *Table) SizeVT() (n int) + func (m *Table) UnmarshalVT(dAtA []byte) error + func (x *Table) GetColumns() []*Column + func (x *Table) GetComment() string + func (x *Table) GetRel() *Identifier + func (x *Table) ProtoReflect() protoreflect.Message + func (x *Table) Reset() + func (x *Table) String() string