Documentation ¶
Overview ¶
Package model described the model format for tables
Index ¶
- Variables
- type FieldOptions
- func (*FieldOptions) Descriptor() ([]byte, []int)
- func (m *FieldOptions) GetColFn() string
- func (*FieldOptions) ProtoMessage()
- func (m *FieldOptions) Reset()
- func (m *FieldOptions) String() string
- func (m *FieldOptions) XXX_DiscardUnknown()
- func (m *FieldOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FieldOptions) XXX_Merge(src proto.Message)
- func (m *FieldOptions) XXX_Size() int
- func (m *FieldOptions) XXX_Unmarshal(b []byte) error
- type KeyType
- type TableOptions
- func (*TableOptions) Descriptor() ([]byte, []int)
- func (m *TableOptions) GetKey() []*TableOptions_Key
- func (m *TableOptions) GetName() string
- func (*TableOptions) ProtoMessage()
- func (m *TableOptions) Reset()
- func (m *TableOptions) String() string
- func (m *TableOptions) XXX_DiscardUnknown()
- func (m *TableOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TableOptions) XXX_Merge(src proto.Message)
- func (m *TableOptions) XXX_Size() int
- func (m *TableOptions) XXX_Unmarshal(b []byte) error
- type TableOptions_Key
- func (*TableOptions_Key) Descriptor() ([]byte, []int)
- func (m *TableOptions_Key) GetCol() []string
- func (m *TableOptions_Key) GetKeyType() KeyType
- func (m *TableOptions_Key) GetName() string
- func (*TableOptions_Key) ProtoMessage()
- func (m *TableOptions_Key) Reset()
- func (m *TableOptions_Key) String() string
- func (m *TableOptions_Key) XXX_DiscardUnknown()
- func (m *TableOptions_Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TableOptions_Key) XXX_Merge(src proto.Message)
- func (m *TableOptions_Key) XXX_Size() int
- func (m *TableOptions_Key) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var E_FieldOpts = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FieldOptions)(nil), ExtensionType: (*FieldOptions)(nil), Field: 65537, Name: "pixur.be.schema.db.model.field_opts", Tag: "bytes,65537,opt,name=field_opts", Filename: "model.proto", }
View Source
var E_TabOpts = &proto.ExtensionDesc{ ExtendedType: (*descriptor.MessageOptions)(nil), ExtensionType: (*TableOptions)(nil), Field: 65537, Name: "pixur.be.schema.db.model.tab_opts", Tag: "bytes,65537,opt,name=tab_opts", Filename: "model.proto", }
View Source
var KeyType_name = map[int32]string{
0: "NONE",
1: "PRIMARY",
2: "INDEX",
3: "UNIQUE",
}
View Source
var KeyType_value = map[string]int32{
"NONE": 0,
"PRIMARY": 1,
"INDEX": 2,
"UNIQUE": 3,
}
Functions ¶
This section is empty.
Types ¶
type FieldOptions ¶
type FieldOptions struct { ColFn string `protobuf:"bytes,1,opt,name=col_fn,json=colFn,proto3" json:"col_fn,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FieldOptions) Descriptor ¶
func (*FieldOptions) Descriptor() ([]byte, []int)
func (*FieldOptions) GetColFn ¶
func (m *FieldOptions) GetColFn() string
func (*FieldOptions) ProtoMessage ¶
func (*FieldOptions) ProtoMessage()
func (*FieldOptions) Reset ¶
func (m *FieldOptions) Reset()
func (*FieldOptions) String ¶
func (m *FieldOptions) String() string
func (*FieldOptions) XXX_DiscardUnknown ¶
func (m *FieldOptions) XXX_DiscardUnknown()
func (*FieldOptions) XXX_Marshal ¶
func (m *FieldOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FieldOptions) XXX_Merge ¶
func (m *FieldOptions) XXX_Merge(src proto.Message)
func (*FieldOptions) XXX_Size ¶
func (m *FieldOptions) XXX_Size() int
func (*FieldOptions) XXX_Unmarshal ¶
func (m *FieldOptions) XXX_Unmarshal(b []byte) error
type TableOptions ¶
type TableOptions struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Key []*TableOptions_Key `protobuf:"bytes,2,rep,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TableOptions) Descriptor ¶
func (*TableOptions) Descriptor() ([]byte, []int)
func (*TableOptions) GetKey ¶
func (m *TableOptions) GetKey() []*TableOptions_Key
func (*TableOptions) GetName ¶
func (m *TableOptions) GetName() 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
type TableOptions_Key ¶
type TableOptions_Key struct { Col []string `protobuf:"bytes,1,rep,name=col,proto3" json:"col,omitempty"` KeyType KeyType `protobuf:"varint,2,opt,name=key_type,json=keyType,proto3,enum=pixur.be.schema.db.model.KeyType" json:"key_type,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TableOptions_Key) Descriptor ¶
func (*TableOptions_Key) Descriptor() ([]byte, []int)
func (*TableOptions_Key) GetCol ¶
func (m *TableOptions_Key) GetCol() []string
func (*TableOptions_Key) GetKeyType ¶
func (m *TableOptions_Key) GetKeyType() KeyType
func (*TableOptions_Key) GetName ¶
func (m *TableOptions_Key) GetName() string
func (*TableOptions_Key) ProtoMessage ¶
func (*TableOptions_Key) ProtoMessage()
func (*TableOptions_Key) Reset ¶
func (m *TableOptions_Key) Reset()
func (*TableOptions_Key) String ¶
func (m *TableOptions_Key) String() string
func (*TableOptions_Key) XXX_DiscardUnknown ¶
func (m *TableOptions_Key) XXX_DiscardUnknown()
func (*TableOptions_Key) XXX_Marshal ¶
func (m *TableOptions_Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TableOptions_Key) XXX_Merge ¶
func (m *TableOptions_Key) XXX_Merge(src proto.Message)
func (*TableOptions_Key) XXX_Size ¶
func (m *TableOptions_Key) XXX_Size() int
func (*TableOptions_Key) XXX_Unmarshal ¶
func (m *TableOptions_Key) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.