Versions in this module Expand all Collapse all v1 v1.23.0 Nov 2, 2023 Changes in this version + const CodegenService_Generate_FullMethodName + var CodegenService_ServiceDesc = grpc.ServiceDesc + var File_plugin_codegen_proto protoreflect.FileDescriptor + func RegisterCodegenServiceServer(s grpc.ServiceRegistrar, srv CodegenServiceServer) + type Catalog struct + Comment string + DefaultSchema string + Name string + Schemas []*Schema + func (*Catalog) Descriptor() ([]byte, []int) + func (*Catalog) ProtoMessage() + 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 Codegen struct + Env []string + Options []byte + Out string + Plugin string + Process *Codegen_Process + Wasm *Codegen_WASM + func (*Codegen) Descriptor() ([]byte, []int) + func (*Codegen) ProtoMessage() + func (x *Codegen) GetEnv() []string + func (x *Codegen) GetOptions() []byte + func (x *Codegen) GetOut() string + func (x *Codegen) GetPlugin() string + func (x *Codegen) GetProcess() *Codegen_Process + func (x *Codegen) GetWasm() *Codegen_WASM + func (x *Codegen) ProtoReflect() protoreflect.Message + func (x *Codegen) Reset() + func (x *Codegen) String() string + type CodegenServiceClient interface + Generate func(ctx context.Context, in *GenerateRequest, opts ...grpc.CallOption) (*GenerateResponse, error) + func NewCodegenServiceClient(cc grpc.ClientConnInterface) CodegenServiceClient + type CodegenServiceServer interface + Generate func(context.Context, *GenerateRequest) (*GenerateResponse, error) + type Codegen_Process struct + Cmd string + func (*Codegen_Process) Descriptor() ([]byte, []int) + func (*Codegen_Process) ProtoMessage() + func (x *Codegen_Process) GetCmd() string + func (x *Codegen_Process) ProtoReflect() protoreflect.Message + func (x *Codegen_Process) Reset() + func (x *Codegen_Process) String() string + type Codegen_WASM struct + Sha256 string + Url string + func (*Codegen_WASM) Descriptor() ([]byte, []int) + func (*Codegen_WASM) ProtoMessage() + func (x *Codegen_WASM) GetSha256() string + func (x *Codegen_WASM) GetUrl() string + func (x *Codegen_WASM) ProtoReflect() protoreflect.Message + func (x *Codegen_WASM) Reset() + func (x *Codegen_WASM) String() string + type Column struct + ArrayDims int32 + Comment string + EmbedTable *Identifier + IsArray bool + IsFuncCall bool + IsNamedParam bool + IsSqlcSlice bool + Length int32 + Name string + NotNull bool + OriginalName string + Scope string + Table *Identifier + TableAlias string + Type *Identifier + Unsigned bool + func (*Column) Descriptor() ([]byte, []int) + func (*Column) ProtoMessage() + 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 (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 (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 (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 (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 GenerateRequest struct + Catalog *Catalog + GlobalOptions []byte + PluginOptions []byte + Queries []*Query + Settings *Settings + SqlcVersion string + func (*GenerateRequest) Descriptor() ([]byte, []int) + func (*GenerateRequest) ProtoMessage() + func (x *GenerateRequest) GetCatalog() *Catalog + func (x *GenerateRequest) GetGlobalOptions() []byte + func (x *GenerateRequest) GetPluginOptions() []byte + func (x *GenerateRequest) GetQueries() []*Query + func (x *GenerateRequest) GetSettings() *Settings + func (x *GenerateRequest) GetSqlcVersion() string + func (x *GenerateRequest) ProtoReflect() protoreflect.Message + func (x *GenerateRequest) Reset() + func (x *GenerateRequest) String() string + type GenerateResponse struct + Files []*File + func (*GenerateResponse) Descriptor() ([]byte, []int) + func (*GenerateResponse) ProtoMessage() + func (x *GenerateResponse) GetFiles() []*File + func (x *GenerateResponse) ProtoReflect() protoreflect.Message + func (x *GenerateResponse) Reset() + func (x *GenerateResponse) String() string + type Identifier struct + Catalog string + Name string + Schema string + func (*Identifier) Descriptor() ([]byte, []int) + func (*Identifier) ProtoMessage() + 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 Parameter struct + Column *Column + Number int32 + func (*Parameter) Descriptor() ([]byte, []int) + func (*Parameter) ProtoMessage() + 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 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 (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 (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 + Codegen *Codegen + Engine string + Queries []string + Schema []string + Version string + func (*Settings) Descriptor() ([]byte, []int) + func (*Settings) ProtoMessage() + func (x *Settings) GetCodegen() *Codegen + func (x *Settings) GetEngine() string + func (x *Settings) GetQueries() []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 (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 + type UnimplementedCodegenServiceServer struct + func (UnimplementedCodegenServiceServer) Generate(context.Context, *GenerateRequest) (*GenerateResponse, error) + type UnsafeCodegenServiceServer interface