Documentation ¶
Index ¶
- Variables
- type Catalog
- func (*Catalog) Descriptor() ([]byte, []int)deprecated
- func (x *Catalog) GetComment() string
- func (x *Catalog) GetDefaultSchema() string
- func (x *Catalog) GetName() string
- func (x *Catalog) GetSchemas() []*Schema
- func (*Catalog) ProtoMessage()
- func (x *Catalog) ProtoReflect() protoreflect.Message
- func (x *Catalog) Reset()
- func (x *Catalog) String() string
- type CodeGenRequest
- func (*CodeGenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CodeGenRequest) GetCatalog() *Catalog
- func (x *CodeGenRequest) GetPluginOptions() []byte
- func (x *CodeGenRequest) GetQueries() []*Query
- func (x *CodeGenRequest) GetSettings() *Settings
- func (x *CodeGenRequest) GetSqlcVersion() string
- func (*CodeGenRequest) ProtoMessage()
- func (x *CodeGenRequest) ProtoReflect() protoreflect.Message
- func (x *CodeGenRequest) Reset()
- func (x *CodeGenRequest) String() string
- type CodeGenResponse
- type Codegen
- func (*Codegen) Descriptor() ([]byte, []int)deprecated
- func (x *Codegen) GetOptions() []byte
- func (x *Codegen) GetOut() string
- func (x *Codegen) GetPlugin() string
- func (*Codegen) ProtoMessage()
- func (x *Codegen) ProtoReflect() protoreflect.Message
- func (x *Codegen) Reset()
- func (x *Codegen) String() string
- type Column
- func (*Column) Descriptor() ([]byte, []int)deprecated
- func (x *Column) GetArrayDims() int32
- func (x *Column) GetComment() string
- func (x *Column) GetEmbedTable() *Identifier
- func (x *Column) GetIsArray() bool
- func (x *Column) GetIsFuncCall() bool
- func (x *Column) GetIsNamedParam() bool
- func (x *Column) GetIsSqlcSlice() bool
- func (x *Column) GetLength() int32
- func (x *Column) GetName() string
- func (x *Column) GetNotNull() bool
- func (x *Column) GetOriginalName() string
- func (x *Column) GetScope() string
- func (x *Column) GetTable() *Identifier
- func (x *Column) GetTableAlias() string
- func (x *Column) GetType() *Identifier
- func (x *Column) GetUnsigned() bool
- func (*Column) ProtoMessage()
- func (x *Column) ProtoReflect() protoreflect.Message
- func (x *Column) Reset()
- func (x *Column) String() string
- type CompositeType
- func (*CompositeType) Descriptor() ([]byte, []int)deprecated
- func (x *CompositeType) GetComment() string
- func (x *CompositeType) GetName() string
- func (*CompositeType) ProtoMessage()
- func (x *CompositeType) ProtoReflect() protoreflect.Message
- func (x *CompositeType) Reset()
- func (x *CompositeType) String() string
- type Enum
- type File
- type GoCode
- func (*GoCode) Descriptor() ([]byte, []int)deprecated
- func (x *GoCode) GetEmitAllEnumValues() bool
- func (x *GoCode) GetEmitDbTags() bool
- func (x *GoCode) GetEmitEmptySlices() bool
- func (x *GoCode) GetEmitEnumValidMethod() 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) GetEmitPointersForNullTypes() bool
- func (x *GoCode) GetEmitPreparedQueries() bool
- func (x *GoCode) GetEmitResultStructPointers() bool
- func (x *GoCode) GetInflectionExcludeTableNames() []string
- func (x *GoCode) GetJsonTagsCaseStyle() string
- func (x *GoCode) GetJsonTagsIdUppercase() bool
- func (x *GoCode) GetOmitUnusedStructs() bool
- func (x *GoCode) GetOut() string
- func (x *GoCode) GetOutputBatchFileName() string
- func (x *GoCode) GetOutputCopyfromFileName() 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) GetQueryParameterLimit() int32
- func (x *GoCode) GetSqlDriver() string
- func (x *GoCode) GetSqlPackage() string
- func (*GoCode) ProtoMessage()
- func (x *GoCode) ProtoReflect() protoreflect.Message
- func (x *GoCode) Reset()
- func (x *GoCode) String() string
- type Identifier
- func (*Identifier) Descriptor() ([]byte, []int)deprecated
- func (x *Identifier) GetCatalog() string
- func (x *Identifier) GetName() string
- func (x *Identifier) GetSchema() string
- func (*Identifier) ProtoMessage()
- func (x *Identifier) ProtoReflect() protoreflect.Message
- func (x *Identifier) Reset()
- func (x *Identifier) String() string
- type JSONCode
- func (*JSONCode) Descriptor() ([]byte, []int)deprecated
- func (x *JSONCode) GetFilename() string
- func (x *JSONCode) GetIndent() string
- func (x *JSONCode) GetOut() string
- func (*JSONCode) ProtoMessage()
- func (x *JSONCode) ProtoReflect() protoreflect.Message
- func (x *JSONCode) Reset()
- func (x *JSONCode) String() string
- type Override
- func (*Override) Descriptor() ([]byte, []int)deprecated
- 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) GetTable() *Identifier
- func (x *Override) GetUnsigned() bool
- func (*Override) ProtoMessage()
- func (x *Override) ProtoReflect() protoreflect.Message
- func (x *Override) Reset()
- func (x *Override) String() string
- type Parameter
- type ParsedGoType
- func (*ParsedGoType) Descriptor() ([]byte, []int)deprecated
- func (x *ParsedGoType) GetBasicType() bool
- func (x *ParsedGoType) GetImportPath() string
- func (x *ParsedGoType) GetPackage() string
- func (x *ParsedGoType) GetStructTags() map[string]string
- func (x *ParsedGoType) GetTypeName() string
- func (*ParsedGoType) ProtoMessage()
- func (x *ParsedGoType) ProtoReflect() protoreflect.Message
- func (x *ParsedGoType) Reset()
- func (x *ParsedGoType) String() string
- type Query
- func (*Query) Descriptor() ([]byte, []int)deprecated
- 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 (*Query) ProtoMessage()
- func (x *Query) ProtoReflect() protoreflect.Message
- func (x *Query) Reset()
- func (x *Query) String() string
- type Schema
- func (*Schema) Descriptor() ([]byte, []int)deprecated
- 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 (*Schema) ProtoMessage()
- func (x *Schema) ProtoReflect() protoreflect.Message
- func (x *Schema) Reset()
- func (x *Schema) String() string
- type Settings
- func (*Settings) Descriptor() ([]byte, []int)deprecated
- func (x *Settings) GetCodegen() *Codegen
- func (x *Settings) GetEngine() string
- func (x *Settings) GetGo() *GoCode
- func (x *Settings) GetJson() *JSONCode
- func (x *Settings) GetOverrides() []*Override
- func (x *Settings) GetQueries() []string
- func (x *Settings) GetRename() map[string]string
- func (x *Settings) GetSchema() []string
- func (x *Settings) GetVersion() string
- func (*Settings) ProtoMessage()
- func (x *Settings) ProtoReflect() protoreflect.Message
- func (x *Settings) Reset()
- func (x *Settings) String() string
- type Table
- func (*Table) Descriptor() ([]byte, []int)deprecated
- func (x *Table) GetColumns() []*Column
- func (x *Table) GetComment() string
- func (x *Table) GetRel() *Identifier
- func (*Table) ProtoMessage()
- func (x *Table) ProtoReflect() protoreflect.Message
- func (x *Table) Reset()
- func (x *Table) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_protos_plugin_codegen_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct { Comment string `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` DefaultSchema string `protobuf:"bytes,2,opt,name=default_schema,json=defaultSchema,proto3" json:"default_schema,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Schemas []*Schema `protobuf:"bytes,4,rep,name=schemas,proto3" json:"schemas,omitempty"` // contains filtered or unexported fields }
func (*Catalog) ProtoReflect ¶
func (x *Catalog) ProtoReflect() protoreflect.Message
type CodeGenRequest ¶
type CodeGenRequest struct { Settings *Settings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` Catalog *Catalog `protobuf:"bytes,2,opt,name=catalog,proto3" json:"catalog,omitempty"` Queries []*Query `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` SqlcVersion string `protobuf:"bytes,4,opt,name=sqlc_version,proto3" json:"sqlc_version,omitempty"` PluginOptions []byte `protobuf:"bytes,5,opt,name=plugin_options,proto3" json:"plugin_options,omitempty"` // contains filtered or unexported fields }
func (*CodeGenRequest) Descriptor
deprecated
func (*CodeGenRequest) Descriptor() ([]byte, []int)
Deprecated: Use CodeGenRequest.ProtoReflect.Descriptor instead.
func (*CodeGenRequest) GetCatalog ¶
func (x *CodeGenRequest) GetCatalog() *Catalog
func (*CodeGenRequest) GetPluginOptions ¶
func (x *CodeGenRequest) GetPluginOptions() []byte
func (*CodeGenRequest) GetQueries ¶
func (x *CodeGenRequest) GetQueries() []*Query
func (*CodeGenRequest) GetSettings ¶
func (x *CodeGenRequest) GetSettings() *Settings
func (*CodeGenRequest) GetSqlcVersion ¶
func (x *CodeGenRequest) GetSqlcVersion() string
func (*CodeGenRequest) ProtoMessage ¶
func (*CodeGenRequest) ProtoMessage()
func (*CodeGenRequest) ProtoReflect ¶
func (x *CodeGenRequest) ProtoReflect() protoreflect.Message
func (*CodeGenRequest) Reset ¶
func (x *CodeGenRequest) Reset()
func (*CodeGenRequest) String ¶
func (x *CodeGenRequest) String() string
type CodeGenResponse ¶
type CodeGenResponse struct { Files []*File `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` // contains filtered or unexported fields }
func (*CodeGenResponse) Descriptor
deprecated
func (*CodeGenResponse) Descriptor() ([]byte, []int)
Deprecated: Use CodeGenResponse.ProtoReflect.Descriptor instead.
func (*CodeGenResponse) GetFiles ¶
func (x *CodeGenResponse) GetFiles() []*File
func (*CodeGenResponse) ProtoMessage ¶
func (*CodeGenResponse) ProtoMessage()
func (*CodeGenResponse) ProtoReflect ¶
func (x *CodeGenResponse) ProtoReflect() protoreflect.Message
func (*CodeGenResponse) Reset ¶
func (x *CodeGenResponse) Reset()
func (*CodeGenResponse) String ¶
func (x *CodeGenResponse) String() string
type Codegen ¶
type Codegen struct { Out string `protobuf:"bytes,1,opt,name=out,proto3" json:"out,omitempty"` Plugin string `protobuf:"bytes,2,opt,name=plugin,proto3" json:"plugin,omitempty"` Options []byte `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*Codegen) ProtoReflect ¶
func (x *Codegen) ProtoReflect() protoreflect.Message
type Column ¶
type Column struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` NotNull bool `protobuf:"varint,3,opt,name=not_null,json=notNull,proto3" json:"not_null,omitempty"` IsArray bool `protobuf:"varint,4,opt,name=is_array,json=isArray,proto3" json:"is_array,omitempty"` Comment string `protobuf:"bytes,5,opt,name=comment,proto3" json:"comment,omitempty"` Length int32 `protobuf:"varint,6,opt,name=length,proto3" json:"length,omitempty"` IsNamedParam bool `protobuf:"varint,7,opt,name=is_named_param,json=isNamedParam,proto3" json:"is_named_param,omitempty"` IsFuncCall bool `protobuf:"varint,8,opt,name=is_func_call,json=isFuncCall,proto3" json:"is_func_call,omitempty"` // XXX: Figure out what PostgreSQL calls `foo.id` Scope string `protobuf:"bytes,9,opt,name=scope,proto3" json:"scope,omitempty"` Table *Identifier `protobuf:"bytes,10,opt,name=table,proto3" json:"table,omitempty"` TableAlias string `protobuf:"bytes,11,opt,name=table_alias,json=tableAlias,proto3" json:"table_alias,omitempty"` Type *Identifier `protobuf:"bytes,12,opt,name=type,proto3" json:"type,omitempty"` IsSqlcSlice bool `protobuf:"varint,13,opt,name=is_sqlc_slice,json=isSqlcSlice,proto3" json:"is_sqlc_slice,omitempty"` EmbedTable *Identifier `protobuf:"bytes,14,opt,name=embed_table,json=embedTable,proto3" json:"embed_table,omitempty"` OriginalName string `protobuf:"bytes,15,opt,name=original_name,json=originalName,proto3" json:"original_name,omitempty"` Unsigned bool `protobuf:"varint,16,opt,name=unsigned,proto3" json:"unsigned,omitempty"` ArrayDims int32 `protobuf:"varint,17,opt,name=array_dims,json=arrayDims,proto3" json:"array_dims,omitempty"` // contains filtered or unexported fields }
func (*Column) GetEmbedTable ¶
func (x *Column) GetEmbedTable() *Identifier
func (*Column) GetTable ¶
func (x *Column) GetTable() *Identifier
func (*Column) GetType ¶
func (x *Column) GetType() *Identifier
func (*Column) ProtoReflect ¶
func (x *Column) ProtoReflect() protoreflect.Message
type CompositeType ¶
type CompositeType struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*CompositeType) Descriptor
deprecated
func (*CompositeType) Descriptor() ([]byte, []int)
Deprecated: Use CompositeType.ProtoReflect.Descriptor instead.
func (*CompositeType) GetComment ¶
func (x *CompositeType) GetComment() string
func (*CompositeType) GetName ¶
func (x *CompositeType) GetName() string
func (*CompositeType) ProtoMessage ¶
func (*CompositeType) ProtoMessage()
func (*CompositeType) ProtoReflect ¶
func (x *CompositeType) ProtoReflect() protoreflect.Message
func (*CompositeType) Reset ¶
func (x *CompositeType) Reset()
func (*CompositeType) String ¶
func (x *CompositeType) String() string
type Enum ¶
type Enum struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Vals []string `protobuf:"bytes,2,rep,name=vals,proto3" json:"vals,omitempty"` Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*Enum) ProtoReflect ¶
func (x *Enum) ProtoReflect() protoreflect.Message
type File ¶
type File struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3" json:"contents,omitempty"` // contains filtered or unexported fields }
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
type GoCode ¶
type GoCode struct { EmitInterface bool `protobuf:"varint,1,opt,name=emit_interface,json=emitInterface,proto3" json:"emit_interface,omitempty"` EmitJsonTags bool `protobuf:"varint,2,opt,name=emit_json_tags,json=emitJsonTags,proto3" json:"emit_json_tags,omitempty"` EmitDbTags bool `protobuf:"varint,3,opt,name=emit_db_tags,json=emitDbTags,proto3" json:"emit_db_tags,omitempty"` EmitPreparedQueries bool `protobuf:"varint,4,opt,name=emit_prepared_queries,json=emitPreparedQueries,proto3" json:"emit_prepared_queries,omitempty"` EmitExactTableNames bool `protobuf:"varint,5,opt,name=emit_exact_table_names,json=emitExactTableNames,proto3" json:"emit_exact_table_names,omitempty"` EmitEmptySlices bool `protobuf:"varint,6,opt,name=emit_empty_slices,json=emitEmptySlices,proto3" json:"emit_empty_slices,omitempty"` EmitExportedQueries bool `protobuf:"varint,7,opt,name=emit_exported_queries,json=emitExportedQueries,proto3" json:"emit_exported_queries,omitempty"` EmitResultStructPointers bool `` /* 138-byte string literal not displayed */ EmitParamsStructPointers bool `` /* 138-byte string literal not displayed */ EmitMethodsWithDbArgument bool `` /* 144-byte string literal not displayed */ JsonTagsCaseStyle string `protobuf:"bytes,11,opt,name=json_tags_case_style,json=jsonTagsCaseStyle,proto3" json:"json_tags_case_style,omitempty"` Package string `protobuf:"bytes,12,opt,name=package,proto3" json:"package,omitempty"` Out string `protobuf:"bytes,13,opt,name=out,proto3" json:"out,omitempty"` SqlPackage string `protobuf:"bytes,14,opt,name=sql_package,json=sqlPackage,proto3" json:"sql_package,omitempty"` SqlDriver string `protobuf:"bytes,25,opt,name=sql_driver,json=sqlDriver,proto3" json:"sql_driver,omitempty"` OutputDbFileName string `protobuf:"bytes,15,opt,name=output_db_file_name,json=outputDbFileName,proto3" json:"output_db_file_name,omitempty"` OutputModelsFileName string `` /* 126-byte string literal not displayed */ OutputQuerierFileName string `` /* 129-byte string literal not displayed */ OutputCopyfromFileName string `` /* 132-byte string literal not displayed */ OutputFilesSuffix string `protobuf:"bytes,18,opt,name=output_files_suffix,json=outputFilesSuffix,proto3" json:"output_files_suffix,omitempty"` EmitEnumValidMethod bool `protobuf:"varint,19,opt,name=emit_enum_valid_method,json=emitEnumValidMethod,proto3" json:"emit_enum_valid_method,omitempty"` EmitAllEnumValues bool `protobuf:"varint,20,opt,name=emit_all_enum_values,json=emitAllEnumValues,proto3" json:"emit_all_enum_values,omitempty"` InflectionExcludeTableNames []string `` /* 147-byte string literal not displayed */ EmitPointersForNullTypes bool `` /* 141-byte string literal not displayed */ QueryParameterLimit *int32 `` /* 128-byte string literal not displayed */ OutputBatchFileName string `protobuf:"bytes,24,opt,name=output_batch_file_name,json=outputBatchFileName,proto3" json:"output_batch_file_name,omitempty"` JsonTagsIdUppercase bool `protobuf:"varint,26,opt,name=json_tags_id_uppercase,json=jsonTagsIdUppercase,proto3" json:"json_tags_id_uppercase,omitempty"` OmitUnusedStructs bool `protobuf:"varint,27,opt,name=omit_unused_structs,json=omitUnusedStructs,proto3" json:"omit_unused_structs,omitempty"` // contains filtered or unexported fields }
func (*GoCode) GetInflectionExcludeTableNames ¶
func (*GoCode) ProtoReflect ¶
func (x *GoCode) ProtoReflect() protoreflect.Message
type Identifier ¶
type Identifier struct { Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"` Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Identifier) Descriptor
deprecated
func (*Identifier) Descriptor() ([]byte, []int)
Deprecated: Use Identifier.ProtoReflect.Descriptor instead.
func (*Identifier) GetCatalog ¶
func (x *Identifier) GetCatalog() string
func (*Identifier) GetName ¶
func (x *Identifier) GetName() string
func (*Identifier) GetSchema ¶
func (x *Identifier) GetSchema() string
func (*Identifier) ProtoMessage ¶
func (*Identifier) ProtoMessage()
func (*Identifier) ProtoReflect ¶
func (x *Identifier) ProtoReflect() protoreflect.Message
func (*Identifier) Reset ¶
func (x *Identifier) Reset()
func (*Identifier) String ¶
func (x *Identifier) String() string
type JSONCode ¶
type JSONCode struct { Out string `protobuf:"bytes,1,opt,name=out,proto3" json:"out,omitempty"` Indent string `protobuf:"bytes,2,opt,name=indent,proto3" json:"indent,omitempty"` Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"` // contains filtered or unexported fields }
func (*JSONCode) ProtoReflect ¶
func (x *JSONCode) ProtoReflect() protoreflect.Message
type Override ¶
type Override struct { // name of the type to use, e.g. `github.com/segmentio/ksuid.KSUID` or `mymodule.Type` CodeType string `protobuf:"bytes,1,opt,name=code_type,proto3" json:"code_type,omitempty"` // name of the type to use, e.g. `text` DbType string `protobuf:"bytes,3,opt,name=db_type,proto3" json:"db_type,omitempty"` // True if the override should apply to a nullable database type Nullable bool `protobuf:"varint,5,opt,name=nullable,proto3" json:"nullable,omitempty"` // fully qualified name of the column, e.g. `accounts.id` Column string `protobuf:"bytes,6,opt,name=column,proto3" json:"column,omitempty"` Table *Identifier `protobuf:"bytes,7,opt,name=table,proto3" json:"table,omitempty"` ColumnName string `protobuf:"bytes,8,opt,name=column_name,proto3" json:"column_name,omitempty"` GoType *ParsedGoType `protobuf:"bytes,10,opt,name=go_type,json=goType,proto3" json:"go_type,omitempty"` // True if the override should apply to a unsigned database type Unsigned bool `protobuf:"varint,11,opt,name=unsigned,proto3" json:"unsigned,omitempty"` // contains filtered or unexported fields }
func (*Override) GetGoType ¶
func (x *Override) GetGoType() *ParsedGoType
func (*Override) GetTable ¶
func (x *Override) GetTable() *Identifier
func (*Override) ProtoReflect ¶
func (x *Override) ProtoReflect() protoreflect.Message
type Parameter ¶
type Parameter struct { Number int32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` Column *Column `protobuf:"bytes,2,opt,name=column,proto3" json:"column,omitempty"` // contains filtered or unexported fields }
func (*Parameter) ProtoReflect ¶
func (x *Parameter) ProtoReflect() protoreflect.Message
type ParsedGoType ¶
type ParsedGoType struct { ImportPath string `protobuf:"bytes,1,opt,name=import_path,json=importPath,proto3" json:"import_path,omitempty"` Package string `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"` TypeName string `protobuf:"bytes,3,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` BasicType bool `protobuf:"varint,4,opt,name=basic_type,json=basicType,proto3" json:"basic_type,omitempty"` StructTags map[string]string `` /* 179-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ParsedGoType) Descriptor
deprecated
func (*ParsedGoType) Descriptor() ([]byte, []int)
Deprecated: Use ParsedGoType.ProtoReflect.Descriptor instead.
func (*ParsedGoType) GetBasicType ¶
func (x *ParsedGoType) GetBasicType() bool
func (*ParsedGoType) GetImportPath ¶
func (x *ParsedGoType) GetImportPath() string
func (*ParsedGoType) GetPackage ¶
func (x *ParsedGoType) GetPackage() string
func (*ParsedGoType) GetStructTags ¶
func (x *ParsedGoType) GetStructTags() map[string]string
func (*ParsedGoType) GetTypeName ¶
func (x *ParsedGoType) GetTypeName() string
func (*ParsedGoType) ProtoMessage ¶
func (*ParsedGoType) ProtoMessage()
func (*ParsedGoType) ProtoReflect ¶
func (x *ParsedGoType) ProtoReflect() protoreflect.Message
func (*ParsedGoType) Reset ¶
func (x *ParsedGoType) Reset()
func (*ParsedGoType) String ¶
func (x *ParsedGoType) String() string
type Query ¶
type Query struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Cmd string `protobuf:"bytes,3,opt,name=cmd,proto3" json:"cmd,omitempty"` Columns []*Column `protobuf:"bytes,4,rep,name=columns,proto3" json:"columns,omitempty"` Params []*Parameter `protobuf:"bytes,5,rep,name=params,json=parameters,proto3" json:"params,omitempty"` Comments []string `protobuf:"bytes,6,rep,name=comments,proto3" json:"comments,omitempty"` Filename string `protobuf:"bytes,7,opt,name=filename,proto3" json:"filename,omitempty"` InsertIntoTable *Identifier `protobuf:"bytes,8,opt,name=insert_into_table,proto3" json:"insert_into_table,omitempty"` // contains filtered or unexported fields }
func (*Query) GetInsertIntoTable ¶
func (x *Query) GetInsertIntoTable() *Identifier
func (*Query) ProtoReflect ¶
func (x *Query) ProtoReflect() protoreflect.Message
type Schema ¶
type Schema struct { Comment string `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Tables []*Table `protobuf:"bytes,3,rep,name=tables,proto3" json:"tables,omitempty"` Enums []*Enum `protobuf:"bytes,4,rep,name=enums,proto3" json:"enums,omitempty"` CompositeTypes []*CompositeType `protobuf:"bytes,5,rep,name=composite_types,json=compositeTypes,proto3" json:"composite_types,omitempty"` // contains filtered or unexported fields }
func (*Schema) GetCompositeTypes ¶
func (x *Schema) GetCompositeTypes() []*CompositeType
func (*Schema) ProtoReflect ¶
func (x *Schema) ProtoReflect() protoreflect.Message
type Settings ¶
type Settings struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Engine string `protobuf:"bytes,2,opt,name=engine,proto3" json:"engine,omitempty"` Schema []string `protobuf:"bytes,3,rep,name=schema,proto3" json:"schema,omitempty"` Queries []string `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"` Rename map[string]string `` /* 153-byte string literal not displayed */ Overrides []*Override `protobuf:"bytes,6,rep,name=overrides,proto3" json:"overrides,omitempty"` Codegen *Codegen `protobuf:"bytes,12,opt,name=codegen,proto3" json:"codegen,omitempty"` // TODO: Refactor codegen settings Go *GoCode `protobuf:"bytes,10,opt,name=go,proto3" json:"go,omitempty"` Json *JSONCode `protobuf:"bytes,11,opt,name=json,proto3" json:"json,omitempty"` // contains filtered or unexported fields }
func (*Settings) ProtoReflect ¶
func (x *Settings) ProtoReflect() protoreflect.Message
type Table ¶
type Table struct { Rel *Identifier `protobuf:"bytes,1,opt,name=rel,proto3" json:"rel,omitempty"` Columns []*Column `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"` Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*Table) GetRel ¶
func (x *Table) GetRel() *Identifier
func (*Table) ProtoReflect ¶
func (x *Table) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.