protobuf

package
v0.0.0-...-26bbc2a Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var E_Column = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.FieldOptions)(nil),
	ExtensionType: (*ColumnOptions)(nil),
	Field:         10000003,
	Name:          "ormpb.protobuf.column",
	Tag:           "bytes,10000003,opt,name=column",
	Filename:      "option.proto",
}
View Source
var E_Table = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.MessageOptions)(nil),
	ExtensionType: (*TableOptions)(nil),
	Field:         10000001,
	Name:          "ormpb.protobuf.table",
	Tag:           "bytes,10000001,opt,name=table",
	Filename:      "option.proto",
}

Functions

This section is empty.

Types

type ColumnOptions

type ColumnOptions struct {
	// column_name specifies column name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// type specifies column data type
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// size specifies column size, default 255
	Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	// primary_key specifies column as primary key
	PrimaryKey bool `protobuf:"varint,4,opt,name=primary_key,json=primaryKey,proto3" json:"primary_key,omitempty"`
	// unique specifies column as unique
	Unique bool `protobuf:"varint,5,opt,name=unique,proto3" json:"unique,omitempty"`
	// default specifies column default value
	Default string `protobuf:"bytes,6,opt,name=default,proto3" json:"default,omitempty"`
	// not_null specifies column as NOT NULL
	NotNull bool `protobuf:"varint,7,opt,name=not_null,json=notNull,proto3" json:"not_null,omitempty"`
	// auto_increment specifies column auto incrementable or not
	AutoIncrement        bool     `protobuf:"varint,8,opt,name=auto_increment,json=autoIncrement,proto3" json:"auto_increment,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ColumnOptions) Descriptor

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

func (*ColumnOptions) GetAutoIncrement

func (m *ColumnOptions) GetAutoIncrement() bool

func (*ColumnOptions) GetDefault

func (m *ColumnOptions) GetDefault() string

func (*ColumnOptions) GetName

func (m *ColumnOptions) GetName() string

func (*ColumnOptions) GetNotNull

func (m *ColumnOptions) GetNotNull() bool

func (*ColumnOptions) GetPrimaryKey

func (m *ColumnOptions) GetPrimaryKey() bool

func (*ColumnOptions) GetSize

func (m *ColumnOptions) GetSize() int32

func (*ColumnOptions) GetType

func (m *ColumnOptions) GetType() string

func (*ColumnOptions) GetUnique

func (m *ColumnOptions) GetUnique() bool

func (*ColumnOptions) ProtoMessage

func (*ColumnOptions) ProtoMessage()

func (*ColumnOptions) Reset

func (m *ColumnOptions) Reset()

func (*ColumnOptions) String

func (m *ColumnOptions) String() string

func (*ColumnOptions) XXX_DiscardUnknown

func (m *ColumnOptions) XXX_DiscardUnknown()

func (*ColumnOptions) XXX_Marshal

func (m *ColumnOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ColumnOptions) XXX_Merge

func (m *ColumnOptions) XXX_Merge(src proto.Message)

func (*ColumnOptions) XXX_Size

func (m *ColumnOptions) XXX_Size() int

func (*ColumnOptions) XXX_Unmarshal

func (m *ColumnOptions) XXX_Unmarshal(b []byte) error

type TableOptions

type TableOptions struct {
	// table_name specifies the table name for the message
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type                 string   `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TableOptions) Descriptor

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

func (*TableOptions) GetName

func (m *TableOptions) GetName() string

func (*TableOptions) GetType

func (m *TableOptions) GetType() string

func (*TableOptions) ProtoMessage

func (*TableOptions) ProtoMessage()

func (*TableOptions) Reset

func (m *TableOptions) Reset()

func (*TableOptions) String

func (m *TableOptions) String() string

func (*TableOptions) XXX_DiscardUnknown

func (m *TableOptions) XXX_DiscardUnknown()

func (*TableOptions) XXX_Marshal

func (m *TableOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TableOptions) XXX_Merge

func (m *TableOptions) XXX_Merge(src proto.Message)

func (*TableOptions) XXX_Size

func (m *TableOptions) XXX_Size() int

func (*TableOptions) XXX_Unmarshal

func (m *TableOptions) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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