sqlgen

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PK_name = map[int32]string{
		0: "PK_UNSPECIFIED",
		1: "PK_AUTO",
		2: "PK_MAN",
	}
	PK_value = map[string]int32{
		"PK_UNSPECIFIED": 0,
		"PK_AUTO":        1,
		"PK_MAN":         2,
	}
)

Enum value maps for PK.

View Source
var (
	OPERATION_name = map[int32]string{
		0: "C",
		1: "R",
		2: "U",
		3: "D",
	}
	OPERATION_value = map[string]int32{
		"C": 0,
		"R": 1,
		"U": 2,
		"D": 3,
	}
)

Enum value maps for OPERATION.

View Source
var (
	// optional bool sqlgen = 800200;
	E_Sqlgen = &file_proto_sqlgen_sqlgen_proto_extTypes[0]
	// optional string StoreName = 800201;
	E_StoreName = &file_proto_sqlgen_sqlgen_proto_extTypes[1]
)

Extension fields to descriptorpb.FileOptions.

View Source
var (
	// optional sqlgen.Table table = 800100;
	E_Table = &file_proto_sqlgen_sqlgen_proto_extTypes[2]
	// optional bool jsonb = 800101;
	E_Jsonb = &file_proto_sqlgen_sqlgen_proto_extTypes[3] // optional CRUD crud = 800101;
)

Extension fields to descriptorpb.MessageOptions.

View Source
var (
	// optional sqlgen.Column col = 800110;
	E_Col = &file_proto_sqlgen_sqlgen_proto_extTypes[4]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var File_proto_sqlgen_sqlgen_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Column

type Column struct {
	Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	Pk   *PK     `protobuf:"varint,2,opt,name=pk,enum=sqlgen.PK" json:"pk,omitempty"`
	Fk   *string `protobuf:"bytes,3,opt,name=fk" json:"fk,omitempty"`
	// contains filtered or unexported fields
}

func (*Column) Descriptor deprecated

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

Deprecated: Use Column.ProtoReflect.Descriptor instead.

func (*Column) GetFk

func (x *Column) GetFk() string

func (*Column) GetName

func (x *Column) GetName() string

func (*Column) GetPk

func (x *Column) GetPk() PK

func (*Column) ProtoMessage

func (*Column) ProtoMessage()

func (*Column) ProtoReflect

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

func (*Column) Reset

func (x *Column) Reset()

func (*Column) String

func (x *Column) String() string

type OPERATION

type OPERATION int32
const (
	OPERATION_C OPERATION = 0
	OPERATION_R OPERATION = 1
	OPERATION_U OPERATION = 2
	OPERATION_D OPERATION = 3
)

func (OPERATION) Descriptor

func (OPERATION) Descriptor() protoreflect.EnumDescriptor

func (OPERATION) Enum

func (x OPERATION) Enum() *OPERATION

func (OPERATION) EnumDescriptor deprecated

func (OPERATION) EnumDescriptor() ([]byte, []int)

Deprecated: Use OPERATION.Descriptor instead.

func (OPERATION) Number

func (x OPERATION) Number() protoreflect.EnumNumber

func (OPERATION) String

func (x OPERATION) String() string

func (OPERATION) Type

func (*OPERATION) UnmarshalJSON deprecated

func (x *OPERATION) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type PK

type PK int32
const (
	PK_PK_UNSPECIFIED PK = 0
	PK_PK_AUTO        PK = 1
	PK_PK_MAN         PK = 2
)

func (PK) Descriptor

func (PK) Descriptor() protoreflect.EnumDescriptor

func (PK) Enum

func (x PK) Enum() *PK

func (PK) EnumDescriptor deprecated

func (PK) EnumDescriptor() ([]byte, []int)

Deprecated: Use PK.Descriptor instead.

func (PK) Number

func (x PK) Number() protoreflect.EnumNumber

func (PK) String

func (x PK) String() string

func (PK) Type

func (PK) Type() protoreflect.EnumType

func (*PK) UnmarshalJSON deprecated

func (x *PK) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Table

type Table struct {
	Name *string     `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	Crud []OPERATION `protobuf:"varint,2,rep,name=crud,enum=sqlgen.OPERATION" json:"crud,omitempty"`
	// contains filtered or unexported fields
}

func (*Table) Descriptor deprecated

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

Deprecated: Use Table.ProtoReflect.Descriptor instead.

func (*Table) GetCrud

func (x *Table) GetCrud() []OPERATION

func (*Table) GetName

func (x *Table) GetName() string

func (*Table) ProtoMessage

func (*Table) ProtoMessage()

func (*Table) ProtoReflect

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

func (*Table) Reset

func (x *Table) Reset()

func (*Table) String

func (x *Table) String() string

Jump to

Keyboard shortcuts

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