Documentation ¶
Overview ¶
Package vschema is a generated protocol buffer package.
It is generated from these files:
vschema.proto
It has these top-level messages:
Keyspace Vindex Table ColumnVindex AutoIncrement SrvVSchema
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoIncrement ¶
type AutoIncrement struct { Column string `protobuf:"bytes,1,opt,name=column" json:"column,omitempty"` // The sequence must match a table of type SEQUENCE. Sequence string `protobuf:"bytes,2,opt,name=sequence" json:"sequence,omitempty"` }
Autoincrement is used to designate a column as auto-inc.
func (*AutoIncrement) Descriptor ¶
func (*AutoIncrement) Descriptor() ([]byte, []int)
func (*AutoIncrement) ProtoMessage ¶
func (*AutoIncrement) ProtoMessage()
func (*AutoIncrement) Reset ¶
func (m *AutoIncrement) Reset()
func (*AutoIncrement) String ¶
func (m *AutoIncrement) String() string
type ColumnVindex ¶
type ColumnVindex struct { Column string `protobuf:"bytes,1,opt,name=column" json:"column,omitempty"` // The name must match a vindex defined in Keyspace. Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` }
ColumnVindex is used to associate a column to a vindex.
func (*ColumnVindex) Descriptor ¶
func (*ColumnVindex) Descriptor() ([]byte, []int)
func (*ColumnVindex) ProtoMessage ¶
func (*ColumnVindex) ProtoMessage()
func (*ColumnVindex) Reset ¶
func (m *ColumnVindex) Reset()
func (*ColumnVindex) String ¶
func (m *ColumnVindex) String() string
type Keyspace ¶
type Keyspace struct { // If sharded is false, vindexes and tables are ignored. Sharded bool `protobuf:"varint,1,opt,name=sharded" json:"sharded,omitempty"` Vindexes map[string]*Vindex `` /* 136-byte string literal not displayed */ Tables map[string]*Table `` /* 132-byte string literal not displayed */ }
Keyspace is the vschema for a keyspace.
func (*Keyspace) Descriptor ¶
func (*Keyspace) GetVindexes ¶
func (*Keyspace) ProtoMessage ¶
func (*Keyspace) ProtoMessage()
type SrvVSchema ¶
type SrvVSchema struct { // keyspaces is a map of keyspace name -> Keyspace object. Keyspaces map[string]*Keyspace `` /* 138-byte string literal not displayed */ }
SrvVSchema is the roll-up of all the Keyspace schema for a cell.
func (*SrvVSchema) Descriptor ¶
func (*SrvVSchema) Descriptor() ([]byte, []int)
func (*SrvVSchema) GetKeyspaces ¶
func (m *SrvVSchema) GetKeyspaces() map[string]*Keyspace
func (*SrvVSchema) ProtoMessage ¶
func (*SrvVSchema) ProtoMessage()
func (*SrvVSchema) Reset ¶
func (m *SrvVSchema) Reset()
func (*SrvVSchema) String ¶
func (m *SrvVSchema) String() string
type Table ¶
type Table struct { // If the table is a sequence, type must be // "sequence". Otherwise, it should be empty. Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` // column_vindexes associates columns to vindexes. ColumnVindexes []*ColumnVindex `protobuf:"bytes,2,rep,name=column_vindexes,json=columnVindexes" json:"column_vindexes,omitempty"` // auto_increment is specified if a column needs // to be associated with a sequence. AutoIncrement *AutoIncrement `protobuf:"bytes,3,opt,name=auto_increment,json=autoIncrement" json:"auto_increment,omitempty"` }
Table is the table info for a Keyspace.
func (*Table) Descriptor ¶
func (*Table) GetAutoIncrement ¶
func (m *Table) GetAutoIncrement() *AutoIncrement
func (*Table) GetColumnVindexes ¶
func (m *Table) GetColumnVindexes() []*ColumnVindex
func (*Table) ProtoMessage ¶
func (*Table) ProtoMessage()
type Vindex ¶
type Vindex struct { // The type must match one of the predefined // (or plugged in) vindex names. Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` // params is a map of attribute value pairs // that must be defined as required by the // vindex constructors. The values can only // be strings. Params map[string]string `` /* 132-byte string literal not displayed */ // A lookup vindex can have an owner table defined. // If so, rows in the lookup table are created or // deleted in sync with corresponding rows in the // owner table. Owner string `protobuf:"bytes,3,opt,name=owner" json:"owner,omitempty"` }
Vindex is the vindex info for a Keyspace.
func (*Vindex) Descriptor ¶
func (*Vindex) ProtoMessage ¶
func (*Vindex) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.