plugin

package
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var File_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) Descriptor deprecated

func (*Catalog) Descriptor() ([]byte, []int)

Deprecated: Use Catalog.ProtoReflect.Descriptor instead.

func (*Catalog) GetComment

func (x *Catalog) GetComment() string

func (*Catalog) GetDefaultSchema

func (x *Catalog) GetDefaultSchema() string

func (*Catalog) GetName

func (x *Catalog) GetName() string

func (*Catalog) GetSchemas

func (x *Catalog) GetSchemas() []*Schema

func (*Catalog) MarshalToSizedBufferVT

func (m *Catalog) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Catalog) MarshalToVT

func (m *Catalog) MarshalToVT(dAtA []byte) (int, error)

func (*Catalog) MarshalVT

func (m *Catalog) MarshalVT() (dAtA []byte, err error)

func (*Catalog) ProtoMessage

func (*Catalog) ProtoMessage()

func (*Catalog) ProtoReflect

func (x *Catalog) ProtoReflect() protoreflect.Message

func (*Catalog) Reset

func (x *Catalog) Reset()

func (*Catalog) SizeVT

func (m *Catalog) SizeVT() (n int)

func (*Catalog) String

func (x *Catalog) String() string

func (*Catalog) UnmarshalVT

func (m *Catalog) UnmarshalVT(dAtA []byte) error

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"`
	// 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) GetQueries

func (x *CodeGenRequest) GetQueries() []*Query

func (*CodeGenRequest) GetSettings

func (x *CodeGenRequest) GetSettings() *Settings

func (*CodeGenRequest) GetSqlcVersion

func (x *CodeGenRequest) GetSqlcVersion() string

func (*CodeGenRequest) MarshalToSizedBufferVT

func (m *CodeGenRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CodeGenRequest) MarshalToVT

func (m *CodeGenRequest) MarshalToVT(dAtA []byte) (int, error)

func (*CodeGenRequest) MarshalVT

func (m *CodeGenRequest) MarshalVT() (dAtA []byte, err error)

func (*CodeGenRequest) ProtoMessage

func (*CodeGenRequest) ProtoMessage()

func (*CodeGenRequest) ProtoReflect

func (x *CodeGenRequest) ProtoReflect() protoreflect.Message

func (*CodeGenRequest) Reset

func (x *CodeGenRequest) Reset()

func (*CodeGenRequest) SizeVT

func (m *CodeGenRequest) SizeVT() (n int)

func (*CodeGenRequest) String

func (x *CodeGenRequest) String() string

func (*CodeGenRequest) UnmarshalVT

func (m *CodeGenRequest) UnmarshalVT(dAtA []byte) error

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) MarshalToSizedBufferVT

func (m *CodeGenResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CodeGenResponse) MarshalToVT

func (m *CodeGenResponse) MarshalToVT(dAtA []byte) (int, error)

func (*CodeGenResponse) MarshalVT

func (m *CodeGenResponse) MarshalVT() (dAtA []byte, err error)

func (*CodeGenResponse) ProtoMessage

func (*CodeGenResponse) ProtoMessage()

func (*CodeGenResponse) ProtoReflect

func (x *CodeGenResponse) ProtoReflect() protoreflect.Message

func (*CodeGenResponse) Reset

func (x *CodeGenResponse) Reset()

func (*CodeGenResponse) SizeVT

func (m *CodeGenResponse) SizeVT() (n int)

func (*CodeGenResponse) String

func (x *CodeGenResponse) String() string

func (*CodeGenResponse) UnmarshalVT

func (m *CodeGenResponse) UnmarshalVT(dAtA []byte) error

type Codegen added in v1.14.0

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) Descriptor deprecated added in v1.14.0

func (*Codegen) Descriptor() ([]byte, []int)

Deprecated: Use Codegen.ProtoReflect.Descriptor instead.

func (*Codegen) GetOptions added in v1.14.0

func (x *Codegen) GetOptions() []byte

func (*Codegen) GetOut added in v1.14.0

func (x *Codegen) GetOut() string

func (*Codegen) GetPlugin added in v1.14.0

func (x *Codegen) GetPlugin() string

func (*Codegen) MarshalToSizedBufferVT added in v1.14.0

func (m *Codegen) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Codegen) MarshalToVT added in v1.14.0

func (m *Codegen) MarshalToVT(dAtA []byte) (int, error)

func (*Codegen) MarshalVT added in v1.14.0

func (m *Codegen) MarshalVT() (dAtA []byte, err error)

func (*Codegen) ProtoMessage added in v1.14.0

func (*Codegen) ProtoMessage()

func (*Codegen) ProtoReflect added in v1.14.0

func (x *Codegen) ProtoReflect() protoreflect.Message

func (*Codegen) Reset added in v1.14.0

func (x *Codegen) Reset()

func (*Codegen) SizeVT added in v1.14.0

func (m *Codegen) SizeVT() (n int)

func (*Codegen) String added in v1.14.0

func (x *Codegen) String() string

func (*Codegen) UnmarshalVT added in v1.14.0

func (m *Codegen) UnmarshalVT(dAtA []byte) error

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"`
	// contains filtered or unexported fields
}

func (*Column) Descriptor deprecated

func (*Column) Descriptor() ([]byte, []int)

Deprecated: Use Column.ProtoReflect.Descriptor instead.

func (*Column) GetComment

func (x *Column) GetComment() string

func (*Column) GetIsArray

func (x *Column) GetIsArray() bool

func (*Column) GetIsFuncCall

func (x *Column) GetIsFuncCall() bool

func (*Column) GetIsNamedParam

func (x *Column) GetIsNamedParam() bool

func (*Column) GetLength

func (x *Column) GetLength() int32

func (*Column) GetName

func (x *Column) GetName() string

func (*Column) GetNotNull

func (x *Column) GetNotNull() bool

func (*Column) GetScope

func (x *Column) GetScope() string

func (*Column) GetTable

func (x *Column) GetTable() *Identifier

func (*Column) GetTableAlias

func (x *Column) GetTableAlias() string

func (*Column) GetType

func (x *Column) GetType() *Identifier

func (*Column) MarshalToSizedBufferVT

func (m *Column) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Column) MarshalToVT

func (m *Column) MarshalToVT(dAtA []byte) (int, error)

func (*Column) MarshalVT

func (m *Column) MarshalVT() (dAtA []byte, err error)

func (*Column) ProtoMessage

func (*Column) ProtoMessage()

func (*Column) ProtoReflect

func (x *Column) ProtoReflect() protoreflect.Message

func (*Column) Reset

func (x *Column) Reset()

func (*Column) SizeVT

func (m *Column) SizeVT() (n int)

func (*Column) String

func (x *Column) String() string

func (*Column) UnmarshalVT

func (m *Column) UnmarshalVT(dAtA []byte) error

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) MarshalToSizedBufferVT

func (m *CompositeType) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CompositeType) MarshalToVT

func (m *CompositeType) MarshalToVT(dAtA []byte) (int, error)

func (*CompositeType) MarshalVT

func (m *CompositeType) MarshalVT() (dAtA []byte, err error)

func (*CompositeType) ProtoMessage

func (*CompositeType) ProtoMessage()

func (*CompositeType) ProtoReflect

func (x *CompositeType) ProtoReflect() protoreflect.Message

func (*CompositeType) Reset

func (x *CompositeType) Reset()

func (*CompositeType) SizeVT

func (m *CompositeType) SizeVT() (n int)

func (*CompositeType) String

func (x *CompositeType) String() string

func (*CompositeType) UnmarshalVT

func (m *CompositeType) UnmarshalVT(dAtA []byte) error

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) Descriptor deprecated

func (*Enum) Descriptor() ([]byte, []int)

Deprecated: Use Enum.ProtoReflect.Descriptor instead.

func (*Enum) GetComment

func (x *Enum) GetComment() string

func (*Enum) GetName

func (x *Enum) GetName() string

func (*Enum) GetVals

func (x *Enum) GetVals() []string

func (*Enum) MarshalToSizedBufferVT

func (m *Enum) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Enum) MarshalToVT

func (m *Enum) MarshalToVT(dAtA []byte) (int, error)

func (*Enum) MarshalVT

func (m *Enum) MarshalVT() (dAtA []byte, err error)

func (*Enum) ProtoMessage

func (*Enum) ProtoMessage()

func (*Enum) ProtoReflect

func (x *Enum) ProtoReflect() protoreflect.Message

func (*Enum) Reset

func (x *Enum) Reset()

func (*Enum) SizeVT

func (m *Enum) SizeVT() (n int)

func (*Enum) String

func (x *Enum) String() string

func (*Enum) UnmarshalVT

func (m *Enum) UnmarshalVT(dAtA []byte) error

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) Descriptor deprecated

func (*File) Descriptor() ([]byte, []int)

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetContents

func (x *File) GetContents() []byte

func (*File) GetName

func (x *File) GetName() string

func (*File) MarshalToSizedBufferVT

func (m *File) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*File) MarshalToVT

func (m *File) MarshalToVT(dAtA []byte) (int, error)

func (*File) MarshalVT

func (m *File) MarshalVT() (dAtA []byte, err error)

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

func (x *File) ProtoReflect() protoreflect.Message

func (*File) Reset

func (x *File) Reset()

func (*File) SizeVT

func (m *File) SizeVT() (n int)

func (*File) String

func (x *File) String() string

func (*File) UnmarshalVT

func (m *File) UnmarshalVT(dAtA []byte) error

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"`
	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 */
	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"`
	// contains filtered or unexported fields
}

func (*GoCode) Descriptor deprecated

func (*GoCode) Descriptor() ([]byte, []int)

Deprecated: Use GoCode.ProtoReflect.Descriptor instead.

func (*GoCode) GetEmitAllEnumValues added in v1.14.0

func (x *GoCode) GetEmitAllEnumValues() bool

func (*GoCode) GetEmitDbTags

func (x *GoCode) GetEmitDbTags() bool

func (*GoCode) GetEmitEmptySlices

func (x *GoCode) GetEmitEmptySlices() bool

func (*GoCode) GetEmitEnumValidMethod added in v1.14.0

func (x *GoCode) GetEmitEnumValidMethod() bool

func (*GoCode) GetEmitExactTableNames

func (x *GoCode) GetEmitExactTableNames() bool

func (*GoCode) GetEmitExportedQueries

func (x *GoCode) GetEmitExportedQueries() bool

func (*GoCode) GetEmitInterface

func (x *GoCode) GetEmitInterface() bool

func (*GoCode) GetEmitJsonTags

func (x *GoCode) GetEmitJsonTags() bool

func (*GoCode) GetEmitMethodsWithDbArgument

func (x *GoCode) GetEmitMethodsWithDbArgument() bool

func (*GoCode) GetEmitParamsStructPointers

func (x *GoCode) GetEmitParamsStructPointers() bool

func (*GoCode) GetEmitPreparedQueries

func (x *GoCode) GetEmitPreparedQueries() bool

func (*GoCode) GetEmitResultStructPointers

func (x *GoCode) GetEmitResultStructPointers() bool

func (*GoCode) GetJsonTagsCaseStyle

func (x *GoCode) GetJsonTagsCaseStyle() string

func (*GoCode) GetOut

func (x *GoCode) GetOut() string

func (*GoCode) GetOutputDbFileName

func (x *GoCode) GetOutputDbFileName() string

func (*GoCode) GetOutputFilesSuffix

func (x *GoCode) GetOutputFilesSuffix() string

func (*GoCode) GetOutputModelsFileName

func (x *GoCode) GetOutputModelsFileName() string

func (*GoCode) GetOutputQuerierFileName

func (x *GoCode) GetOutputQuerierFileName() string

func (*GoCode) GetPackage

func (x *GoCode) GetPackage() string

func (*GoCode) GetSqlPackage

func (x *GoCode) GetSqlPackage() string

func (*GoCode) MarshalToSizedBufferVT

func (m *GoCode) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*GoCode) MarshalToVT

func (m *GoCode) MarshalToVT(dAtA []byte) (int, error)

func (*GoCode) MarshalVT

func (m *GoCode) MarshalVT() (dAtA []byte, err error)

func (*GoCode) ProtoMessage

func (*GoCode) ProtoMessage()

func (*GoCode) ProtoReflect

func (x *GoCode) ProtoReflect() protoreflect.Message

func (*GoCode) Reset

func (x *GoCode) Reset()

func (*GoCode) SizeVT

func (m *GoCode) SizeVT() (n int)

func (*GoCode) String

func (x *GoCode) String() string

func (*GoCode) UnmarshalVT

func (m *GoCode) UnmarshalVT(dAtA []byte) error

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) MarshalToSizedBufferVT

func (m *Identifier) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Identifier) MarshalToVT

func (m *Identifier) MarshalToVT(dAtA []byte) (int, error)

func (*Identifier) MarshalVT

func (m *Identifier) MarshalVT() (dAtA []byte, err error)

func (*Identifier) ProtoMessage

func (*Identifier) ProtoMessage()

func (*Identifier) ProtoReflect

func (x *Identifier) ProtoReflect() protoreflect.Message

func (*Identifier) Reset

func (x *Identifier) Reset()

func (*Identifier) SizeVT

func (m *Identifier) SizeVT() (n int)

func (*Identifier) String

func (x *Identifier) String() string

func (*Identifier) UnmarshalVT

func (m *Identifier) UnmarshalVT(dAtA []byte) error

type JSONCode added in v1.14.0

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) Descriptor deprecated added in v1.14.0

func (*JSONCode) Descriptor() ([]byte, []int)

Deprecated: Use JSONCode.ProtoReflect.Descriptor instead.

func (*JSONCode) GetFilename added in v1.14.0

func (x *JSONCode) GetFilename() string

func (*JSONCode) GetIndent added in v1.14.0

func (x *JSONCode) GetIndent() string

func (*JSONCode) GetOut added in v1.14.0

func (x *JSONCode) GetOut() string

func (*JSONCode) MarshalToSizedBufferVT added in v1.14.0

func (m *JSONCode) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*JSONCode) MarshalToVT added in v1.14.0

func (m *JSONCode) MarshalToVT(dAtA []byte) (int, error)

func (*JSONCode) MarshalVT added in v1.14.0

func (m *JSONCode) MarshalVT() (dAtA []byte, err error)

func (*JSONCode) ProtoMessage added in v1.14.0

func (*JSONCode) ProtoMessage()

func (*JSONCode) ProtoReflect added in v1.14.0

func (x *JSONCode) ProtoReflect() protoreflect.Message

func (*JSONCode) Reset added in v1.14.0

func (x *JSONCode) Reset()

func (*JSONCode) SizeVT added in v1.14.0

func (m *JSONCode) SizeVT() (n int)

func (*JSONCode) String added in v1.14.0

func (x *JSONCode) String() string

func (*JSONCode) UnmarshalVT added in v1.14.0

func (m *JSONCode) UnmarshalVT(dAtA []byte) error

type KotlinCode

type KotlinCode struct {
	EmitExactTableNames bool   `protobuf:"varint,1,opt,name=emit_exact_table_names,json=emitExactTableNames,proto3" json:"emit_exact_table_names,omitempty"`
	Package             string `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"`
	Out                 string `protobuf:"bytes,3,opt,name=out,proto3" json:"out,omitempty"`
	// contains filtered or unexported fields
}

func (*KotlinCode) Descriptor deprecated

func (*KotlinCode) Descriptor() ([]byte, []int)

Deprecated: Use KotlinCode.ProtoReflect.Descriptor instead.

func (*KotlinCode) GetEmitExactTableNames

func (x *KotlinCode) GetEmitExactTableNames() bool

func (*KotlinCode) GetOut

func (x *KotlinCode) GetOut() string

func (*KotlinCode) GetPackage

func (x *KotlinCode) GetPackage() string

func (*KotlinCode) MarshalToSizedBufferVT

func (m *KotlinCode) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*KotlinCode) MarshalToVT

func (m *KotlinCode) MarshalToVT(dAtA []byte) (int, error)

func (*KotlinCode) MarshalVT

func (m *KotlinCode) MarshalVT() (dAtA []byte, err error)

func (*KotlinCode) ProtoMessage

func (*KotlinCode) ProtoMessage()

func (*KotlinCode) ProtoReflect

func (x *KotlinCode) ProtoReflect() protoreflect.Message

func (*KotlinCode) Reset

func (x *KotlinCode) Reset()

func (*KotlinCode) SizeVT

func (m *KotlinCode) SizeVT() (n int)

func (*KotlinCode) String

func (x *KotlinCode) String() string

func (*KotlinCode) UnmarshalVT

func (m *KotlinCode) UnmarshalVT(dAtA []byte) error

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"`
	PythonType *PythonType   `protobuf:"bytes,9,opt,name=python_type,json=pythonType,proto3" json:"python_type,omitempty"`
	GoType     *ParsedGoType `protobuf:"bytes,10,opt,name=go_type,json=goType,proto3" json:"go_type,omitempty"`
	// contains filtered or unexported fields
}

func (*Override) Descriptor deprecated

func (*Override) Descriptor() ([]byte, []int)

Deprecated: Use Override.ProtoReflect.Descriptor instead.

func (*Override) GetCodeType

func (x *Override) GetCodeType() string

func (*Override) GetColumn

func (x *Override) GetColumn() string

func (*Override) GetColumnName

func (x *Override) GetColumnName() string

func (*Override) GetDbType

func (x *Override) GetDbType() string

func (*Override) GetGoType

func (x *Override) GetGoType() *ParsedGoType

func (*Override) GetNullable

func (x *Override) GetNullable() bool

func (*Override) GetPythonType

func (x *Override) GetPythonType() *PythonType

func (*Override) GetTable

func (x *Override) GetTable() *Identifier

func (*Override) MarshalToSizedBufferVT

func (m *Override) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Override) MarshalToVT

func (m *Override) MarshalToVT(dAtA []byte) (int, error)

func (*Override) MarshalVT

func (m *Override) MarshalVT() (dAtA []byte, err error)

func (*Override) ProtoMessage

func (*Override) ProtoMessage()

func (*Override) ProtoReflect

func (x *Override) ProtoReflect() protoreflect.Message

func (*Override) Reset

func (x *Override) Reset()

func (*Override) SizeVT

func (m *Override) SizeVT() (n int)

func (*Override) String

func (x *Override) String() string

func (*Override) UnmarshalVT

func (m *Override) UnmarshalVT(dAtA []byte) error

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) Descriptor deprecated

func (*Parameter) Descriptor() ([]byte, []int)

Deprecated: Use Parameter.ProtoReflect.Descriptor instead.

func (*Parameter) GetColumn

func (x *Parameter) GetColumn() *Column

func (*Parameter) GetNumber

func (x *Parameter) GetNumber() int32

func (*Parameter) MarshalToSizedBufferVT

func (m *Parameter) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Parameter) MarshalToVT

func (m *Parameter) MarshalToVT(dAtA []byte) (int, error)

func (*Parameter) MarshalVT

func (m *Parameter) MarshalVT() (dAtA []byte, err error)

func (*Parameter) ProtoMessage

func (*Parameter) ProtoMessage()

func (*Parameter) ProtoReflect

func (x *Parameter) ProtoReflect() protoreflect.Message

func (*Parameter) Reset

func (x *Parameter) Reset()

func (*Parameter) SizeVT

func (m *Parameter) SizeVT() (n int)

func (*Parameter) String

func (x *Parameter) String() string

func (*Parameter) UnmarshalVT

func (m *Parameter) UnmarshalVT(dAtA []byte) error

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 added in v1.14.0

func (x *ParsedGoType) GetStructTags() map[string]string

func (*ParsedGoType) GetTypeName

func (x *ParsedGoType) GetTypeName() string

func (*ParsedGoType) MarshalToSizedBufferVT

func (m *ParsedGoType) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ParsedGoType) MarshalToVT

func (m *ParsedGoType) MarshalToVT(dAtA []byte) (int, error)

func (*ParsedGoType) MarshalVT

func (m *ParsedGoType) MarshalVT() (dAtA []byte, err error)

func (*ParsedGoType) ProtoMessage

func (*ParsedGoType) ProtoMessage()

func (*ParsedGoType) ProtoReflect

func (x *ParsedGoType) ProtoReflect() protoreflect.Message

func (*ParsedGoType) Reset

func (x *ParsedGoType) Reset()

func (*ParsedGoType) SizeVT

func (m *ParsedGoType) SizeVT() (n int)

func (*ParsedGoType) String

func (x *ParsedGoType) String() string

func (*ParsedGoType) UnmarshalVT

func (m *ParsedGoType) UnmarshalVT(dAtA []byte) error

type PythonCode

type PythonCode struct {
	EmitExactTableNames bool   `protobuf:"varint,1,opt,name=emit_exact_table_names,json=emitExactTableNames,proto3" json:"emit_exact_table_names,omitempty"`
	EmitSyncQuerier     bool   `protobuf:"varint,2,opt,name=emit_sync_querier,json=emitSyncQuerier,proto3" json:"emit_sync_querier,omitempty"`
	EmitAsyncQuerier    bool   `protobuf:"varint,3,opt,name=emit_async_querier,json=emitAsyncQuerier,proto3" json:"emit_async_querier,omitempty"`
	Package             string `protobuf:"bytes,4,opt,name=package,proto3" json:"package,omitempty"`
	Out                 string `protobuf:"bytes,5,opt,name=out,proto3" json:"out,omitempty"`
	EmitPydanticModels  bool   `protobuf:"varint,6,opt,name=emit_pydantic_models,json=emitPydanticModels,proto3" json:"emit_pydantic_models,omitempty"`
	// contains filtered or unexported fields
}

func (*PythonCode) Descriptor deprecated

func (*PythonCode) Descriptor() ([]byte, []int)

Deprecated: Use PythonCode.ProtoReflect.Descriptor instead.

func (*PythonCode) GetEmitAsyncQuerier

func (x *PythonCode) GetEmitAsyncQuerier() bool

func (*PythonCode) GetEmitExactTableNames

func (x *PythonCode) GetEmitExactTableNames() bool

func (*PythonCode) GetEmitPydanticModels added in v1.14.0

func (x *PythonCode) GetEmitPydanticModels() bool

func (*PythonCode) GetEmitSyncQuerier

func (x *PythonCode) GetEmitSyncQuerier() bool

func (*PythonCode) GetOut

func (x *PythonCode) GetOut() string

func (*PythonCode) GetPackage

func (x *PythonCode) GetPackage() string

func (*PythonCode) MarshalToSizedBufferVT

func (m *PythonCode) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*PythonCode) MarshalToVT

func (m *PythonCode) MarshalToVT(dAtA []byte) (int, error)

func (*PythonCode) MarshalVT

func (m *PythonCode) MarshalVT() (dAtA []byte, err error)

func (*PythonCode) ProtoMessage

func (*PythonCode) ProtoMessage()

func (*PythonCode) ProtoReflect

func (x *PythonCode) ProtoReflect() protoreflect.Message

func (*PythonCode) Reset

func (x *PythonCode) Reset()

func (*PythonCode) SizeVT

func (m *PythonCode) SizeVT() (n int)

func (*PythonCode) String

func (x *PythonCode) String() string

func (*PythonCode) UnmarshalVT

func (m *PythonCode) UnmarshalVT(dAtA []byte) error

type PythonType

type PythonType struct {
	Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*PythonType) Descriptor deprecated

func (*PythonType) Descriptor() ([]byte, []int)

Deprecated: Use PythonType.ProtoReflect.Descriptor instead.

func (*PythonType) GetModule

func (x *PythonType) GetModule() string

func (*PythonType) GetName

func (x *PythonType) GetName() string

func (*PythonType) MarshalToSizedBufferVT

func (m *PythonType) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*PythonType) MarshalToVT

func (m *PythonType) MarshalToVT(dAtA []byte) (int, error)

func (*PythonType) MarshalVT

func (m *PythonType) MarshalVT() (dAtA []byte, err error)

func (*PythonType) ProtoMessage

func (*PythonType) ProtoMessage()

func (*PythonType) ProtoReflect

func (x *PythonType) ProtoReflect() protoreflect.Message

func (*PythonType) Reset

func (x *PythonType) Reset()

func (*PythonType) SizeVT

func (m *PythonType) SizeVT() (n int)

func (*PythonType) String

func (x *PythonType) String() string

func (*PythonType) UnmarshalVT

func (m *PythonType) UnmarshalVT(dAtA []byte) error

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) Descriptor deprecated

func (*Query) Descriptor() ([]byte, []int)

Deprecated: Use Query.ProtoReflect.Descriptor instead.

func (*Query) GetCmd

func (x *Query) GetCmd() string

func (*Query) GetColumns

func (x *Query) GetColumns() []*Column

func (*Query) GetComments

func (x *Query) GetComments() []string

func (*Query) GetFilename

func (x *Query) GetFilename() string

func (*Query) GetInsertIntoTable

func (x *Query) GetInsertIntoTable() *Identifier

func (*Query) GetName

func (x *Query) GetName() string

func (*Query) GetParams

func (x *Query) GetParams() []*Parameter

func (*Query) GetText

func (x *Query) GetText() string

func (*Query) MarshalToSizedBufferVT

func (m *Query) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Query) MarshalToVT

func (m *Query) MarshalToVT(dAtA []byte) (int, error)

func (*Query) MarshalVT

func (m *Query) MarshalVT() (dAtA []byte, err error)

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) ProtoReflect

func (x *Query) ProtoReflect() protoreflect.Message

func (*Query) Reset

func (x *Query) Reset()

func (*Query) SizeVT

func (m *Query) SizeVT() (n int)

func (*Query) String

func (x *Query) String() string

func (*Query) UnmarshalVT

func (m *Query) UnmarshalVT(dAtA []byte) error

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) Descriptor deprecated

func (*Schema) Descriptor() ([]byte, []int)

Deprecated: Use Schema.ProtoReflect.Descriptor instead.

func (*Schema) GetComment

func (x *Schema) GetComment() string

func (*Schema) GetCompositeTypes

func (x *Schema) GetCompositeTypes() []*CompositeType

func (*Schema) GetEnums

func (x *Schema) GetEnums() []*Enum

func (*Schema) GetName

func (x *Schema) GetName() string

func (*Schema) GetTables

func (x *Schema) GetTables() []*Table

func (*Schema) MarshalToSizedBufferVT

func (m *Schema) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Schema) MarshalToVT

func (m *Schema) MarshalToVT(dAtA []byte) (int, error)

func (*Schema) MarshalVT

func (m *Schema) MarshalVT() (dAtA []byte, err error)

func (*Schema) ProtoMessage

func (*Schema) ProtoMessage()

func (*Schema) ProtoReflect

func (x *Schema) ProtoReflect() protoreflect.Message

func (*Schema) Reset

func (x *Schema) Reset()

func (*Schema) SizeVT

func (m *Schema) SizeVT() (n int)

func (*Schema) String

func (x *Schema) String() string

func (*Schema) UnmarshalVT

func (m *Schema) UnmarshalVT(dAtA []byte) error

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
	Python *PythonCode `protobuf:"bytes,8,opt,name=python,proto3" json:"python,omitempty"`
	Kotlin *KotlinCode `protobuf:"bytes,9,opt,name=kotlin,proto3" json:"kotlin,omitempty"`
	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) Descriptor deprecated

func (*Settings) Descriptor() ([]byte, []int)

Deprecated: Use Settings.ProtoReflect.Descriptor instead.

func (*Settings) GetCodegen added in v1.14.0

func (x *Settings) GetCodegen() *Codegen

func (*Settings) GetEngine

func (x *Settings) GetEngine() string

func (*Settings) GetGo

func (x *Settings) GetGo() *GoCode

func (*Settings) GetJson added in v1.14.0

func (x *Settings) GetJson() *JSONCode

func (*Settings) GetKotlin

func (x *Settings) GetKotlin() *KotlinCode

func (*Settings) GetOverrides

func (x *Settings) GetOverrides() []*Override

func (*Settings) GetPython

func (x *Settings) GetPython() *PythonCode

func (*Settings) GetQueries

func (x *Settings) GetQueries() []string

func (*Settings) GetRename

func (x *Settings) GetRename() map[string]string

func (*Settings) GetSchema

func (x *Settings) GetSchema() []string

func (*Settings) GetVersion

func (x *Settings) GetVersion() string

func (*Settings) MarshalToSizedBufferVT

func (m *Settings) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Settings) MarshalToVT

func (m *Settings) MarshalToVT(dAtA []byte) (int, error)

func (*Settings) MarshalVT

func (m *Settings) MarshalVT() (dAtA []byte, err error)

func (*Settings) ProtoMessage

func (*Settings) ProtoMessage()

func (*Settings) ProtoReflect

func (x *Settings) ProtoReflect() protoreflect.Message

func (*Settings) Reset

func (x *Settings) Reset()

func (*Settings) SizeVT

func (m *Settings) SizeVT() (n int)

func (*Settings) String

func (x *Settings) String() string

func (*Settings) UnmarshalVT

func (m *Settings) UnmarshalVT(dAtA []byte) error

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) Descriptor deprecated

func (*Table) Descriptor() ([]byte, []int)

Deprecated: Use Table.ProtoReflect.Descriptor instead.

func (*Table) GetColumns

func (x *Table) GetColumns() []*Column

func (*Table) GetComment

func (x *Table) GetComment() string

func (*Table) GetRel

func (x *Table) GetRel() *Identifier

func (*Table) MarshalToSizedBufferVT

func (m *Table) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Table) MarshalToVT

func (m *Table) MarshalToVT(dAtA []byte) (int, error)

func (*Table) MarshalVT

func (m *Table) MarshalVT() (dAtA []byte, err error)

func (*Table) ProtoMessage

func (*Table) ProtoMessage()

func (*Table) ProtoReflect

func (x *Table) ProtoReflect() protoreflect.Message

func (*Table) Reset

func (x *Table) Reset()

func (*Table) SizeVT

func (m *Table) SizeVT() (n int)

func (*Table) String

func (x *Table) String() string

func (*Table) UnmarshalVT

func (m *Table) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL