sqlx

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional go.terra.sqlx.DBField db_field = 82295600;
	E_DbField = &file_sqlx_sqlx_proto_extTypes[0]
)

Extension fields to descriptor.FieldOptions.

View Source
var (
	// optional go.terra.sqlx.DBTable db_table = 82295601;
	E_DbTable = &file_sqlx_sqlx_proto_extTypes[1]
)

Extension fields to descriptor.MessageOptions.

View Source
var File_sqlx_sqlx_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DBField

type DBField struct {
	Db            string          `protobuf:"bytes,1,opt,name=db,proto3" json:"db,omitempty"`                                            // 字段映射
	Insert        bool            `protobuf:"varint,2,opt,name=insert,proto3" json:"insert,omitempty"`                                   // 插入时填入
	InsertDefault *DBFieldDefault `protobuf:"bytes,3,opt,name=insert_default,json=insertDefault,proto3" json:"insert_default,omitempty"` // 插入时默认值
	Update        []string        `protobuf:"bytes,4,rep,name=update,proto3" json:"update,omitempty"`                                    // 根据 Key 更新时填入
	UpdateDefault *DBFieldDefault `protobuf:"bytes,5,opt,name=update_default,json=updateDefault,proto3" json:"update_default,omitempty"` // 根据 Key 更新时默认值
	Delete        []string        `protobuf:"bytes,6,rep,name=delete,proto3" json:"delete,omitempty"`                                    // 根据 Key 删除时填入
	Replace       []string        `protobuf:"bytes,7,rep,name=replace,proto3" json:"replace,omitempty"`                                  // 根据 Key 替换时填入
	One           []string        `protobuf:"bytes,8,rep,name=one,proto3" json:"one,omitempty"`                                          // 根据 Key 查询单个时填入
	List          []string        `protobuf:"bytes,9,rep,name=list,proto3" json:"list,omitempty"`                                        // 根据 Key 查询列表时填入
	// contains filtered or unexported fields
}

func (*DBField) Descriptor deprecated

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

Deprecated: Use DBField.ProtoReflect.Descriptor instead.

func (*DBField) GetDb

func (x *DBField) GetDb() string

func (*DBField) GetDelete

func (x *DBField) GetDelete() []string

func (*DBField) GetInsert

func (x *DBField) GetInsert() bool

func (*DBField) GetInsertDefault

func (x *DBField) GetInsertDefault() *DBFieldDefault

func (*DBField) GetList

func (x *DBField) GetList() []string

func (*DBField) GetOne

func (x *DBField) GetOne() []string

func (*DBField) GetReplace

func (x *DBField) GetReplace() []string

func (*DBField) GetUpdate

func (x *DBField) GetUpdate() []string

func (*DBField) GetUpdateDefault

func (x *DBField) GetUpdateDefault() *DBFieldDefault

func (*DBField) ProtoMessage

func (*DBField) ProtoMessage()

func (*DBField) ProtoReflect

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

func (*DBField) Reset

func (x *DBField) Reset()

func (*DBField) String

func (x *DBField) String() string

type DBFieldDefault

type DBFieldDefault struct {
	GoPkg   string `protobuf:"bytes,1,opt,name=go_pkg,json=goPkg,proto3" json:"go_pkg,omitempty"`
	GoValue string `protobuf:"bytes,2,opt,name=go_value,json=goValue,proto3" json:"go_value,omitempty"`
	// contains filtered or unexported fields
}

func (*DBFieldDefault) Descriptor deprecated

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

Deprecated: Use DBFieldDefault.ProtoReflect.Descriptor instead.

func (*DBFieldDefault) GetGoPkg added in v0.0.3

func (x *DBFieldDefault) GetGoPkg() string

func (*DBFieldDefault) GetGoValue added in v0.0.3

func (x *DBFieldDefault) GetGoValue() string

func (*DBFieldDefault) ProtoMessage

func (*DBFieldDefault) ProtoMessage()

func (*DBFieldDefault) ProtoReflect

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

func (*DBFieldDefault) Reset

func (x *DBFieldDefault) Reset()

func (*DBFieldDefault) String

func (x *DBFieldDefault) String() string

type DBTable

type DBTable struct {
	Name    string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`       // 表名
	Update  []string `protobuf:"bytes,2,rep,name=update,proto3" json:"update,omitempty"`   // 根据 Key 更新时填入
	Delete  []string `protobuf:"bytes,3,rep,name=delete,proto3" json:"delete,omitempty"`   // 根据 Key 删除时填入
	Replace []string `protobuf:"bytes,4,rep,name=replace,proto3" json:"replace,omitempty"` // 替换
	One     []string `protobuf:"bytes,5,rep,name=one,proto3" json:"one,omitempty"`         // 根据 Key 查询单个时填入
	List    []string `protobuf:"bytes,6,rep,name=list,proto3" json:"list,omitempty"`       // 根据 Key 查询列表时填入
	// contains filtered or unexported fields
}

func (*DBTable) Descriptor deprecated

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

Deprecated: Use DBTable.ProtoReflect.Descriptor instead.

func (*DBTable) GetDelete

func (x *DBTable) GetDelete() []string

func (*DBTable) GetList

func (x *DBTable) GetList() []string

func (*DBTable) GetName

func (x *DBTable) GetName() string

func (*DBTable) GetOne

func (x *DBTable) GetOne() []string

func (*DBTable) GetReplace

func (x *DBTable) GetReplace() []string

func (*DBTable) GetUpdate

func (x *DBTable) GetUpdate() []string

func (*DBTable) ProtoMessage

func (*DBTable) ProtoMessage()

func (*DBTable) ProtoReflect

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

func (*DBTable) Reset

func (x *DBTable) Reset()

func (*DBTable) String

func (x *DBTable) String() string

Jump to

Keyboard shortcuts

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