go-vitess.v1: gopkg.in/src-d/go-vitess.v1/vt/proto/vschema Index | Files

package vschema

import "gopkg.in/src-d/go-vitess.v1/vt/proto/vschema"

Index

Package Files

vschema.pb.go

type AutoIncrement Uses

type AutoIncrement struct {
    Column string `protobuf:"bytes,1,opt,name=column,proto3" json:"column,omitempty"`
    // The sequence must match a table of type SEQUENCE.
    Sequence             string   `protobuf:"bytes,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Autoincrement is used to designate a column as auto-inc.

func (*AutoIncrement) Descriptor Uses

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

func (*AutoIncrement) GetColumn Uses

func (m *AutoIncrement) GetColumn() string

func (*AutoIncrement) GetSequence Uses

func (m *AutoIncrement) GetSequence() string

func (*AutoIncrement) ProtoMessage Uses

func (*AutoIncrement) ProtoMessage()

func (*AutoIncrement) Reset Uses

func (m *AutoIncrement) Reset()

func (*AutoIncrement) String Uses

func (m *AutoIncrement) String() string

func (*AutoIncrement) XXX_DiscardUnknown Uses

func (m *AutoIncrement) XXX_DiscardUnknown()

func (*AutoIncrement) XXX_Marshal Uses

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

func (*AutoIncrement) XXX_Merge Uses

func (dst *AutoIncrement) XXX_Merge(src proto.Message)

func (*AutoIncrement) XXX_Size Uses

func (m *AutoIncrement) XXX_Size() int

func (*AutoIncrement) XXX_Unmarshal Uses

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

type Column Uses

type Column struct {
    Name                 string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    Type                 query.Type `protobuf:"varint,2,opt,name=type,proto3,enum=query.Type" json:"type,omitempty"`
    XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    XXX_unrecognized     []byte     `json:"-"`
    XXX_sizecache        int32      `json:"-"`
}

Column describes a column.

func (*Column) Descriptor Uses

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

func (*Column) GetName Uses

func (m *Column) GetName() string

func (*Column) GetType Uses

func (m *Column) GetType() query.Type

func (*Column) ProtoMessage Uses

func (*Column) ProtoMessage()

func (*Column) Reset Uses

func (m *Column) Reset()

func (*Column) String Uses

func (m *Column) String() string

func (*Column) XXX_DiscardUnknown Uses

func (m *Column) XXX_DiscardUnknown()

func (*Column) XXX_Marshal Uses

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

func (*Column) XXX_Merge Uses

func (dst *Column) XXX_Merge(src proto.Message)

func (*Column) XXX_Size Uses

func (m *Column) XXX_Size() int

func (*Column) XXX_Unmarshal Uses

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

type ColumnVindex Uses

type ColumnVindex struct {
    // Legacy implemenation, moving forward all vindexes should define a list of columns.
    Column string `protobuf:"bytes,1,opt,name=column,proto3" json:"column,omitempty"`
    // The name must match a vindex defined in Keyspace.
    Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
    // List of columns that define this Vindex
    Columns              []string `protobuf:"bytes,3,rep,name=columns,proto3" json:"columns,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

ColumnVindex is used to associate a column to a vindex.

func (*ColumnVindex) Descriptor Uses

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

func (*ColumnVindex) GetColumn Uses

func (m *ColumnVindex) GetColumn() string

func (*ColumnVindex) GetColumns Uses

func (m *ColumnVindex) GetColumns() []string

func (*ColumnVindex) GetName Uses

func (m *ColumnVindex) GetName() string

func (*ColumnVindex) ProtoMessage Uses

func (*ColumnVindex) ProtoMessage()

func (*ColumnVindex) Reset Uses

func (m *ColumnVindex) Reset()

func (*ColumnVindex) String Uses

func (m *ColumnVindex) String() string

func (*ColumnVindex) XXX_DiscardUnknown Uses

func (m *ColumnVindex) XXX_DiscardUnknown()

func (*ColumnVindex) XXX_Marshal Uses

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

func (*ColumnVindex) XXX_Merge Uses

func (dst *ColumnVindex) XXX_Merge(src proto.Message)

func (*ColumnVindex) XXX_Size Uses

func (m *ColumnVindex) XXX_Size() int

func (*ColumnVindex) XXX_Unmarshal Uses

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

type Keyspace Uses

type Keyspace struct {
    // If sharded is false, vindexes and tables are ignored.
    Sharded              bool               `protobuf:"varint,1,opt,name=sharded,proto3" json:"sharded,omitempty"`
    Vindexes             map[string]*Vindex `protobuf:"bytes,2,rep,name=vindexes,proto3" json:"vindexes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    Tables               map[string]*Table  `protobuf:"bytes,3,rep,name=tables,proto3" json:"tables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}           `json:"-"`
    XXX_unrecognized     []byte             `json:"-"`
    XXX_sizecache        int32              `json:"-"`
}

Keyspace is the vschema for a keyspace.

func (*Keyspace) Descriptor Uses

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

func (*Keyspace) GetSharded Uses

func (m *Keyspace) GetSharded() bool

func (*Keyspace) GetTables Uses

func (m *Keyspace) GetTables() map[string]*Table

func (*Keyspace) GetVindexes Uses

func (m *Keyspace) GetVindexes() map[string]*Vindex

func (*Keyspace) ProtoMessage Uses

func (*Keyspace) ProtoMessage()

func (*Keyspace) Reset Uses

func (m *Keyspace) Reset()

func (*Keyspace) String Uses

func (m *Keyspace) String() string

func (*Keyspace) XXX_DiscardUnknown Uses

func (m *Keyspace) XXX_DiscardUnknown()

func (*Keyspace) XXX_Marshal Uses

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

func (*Keyspace) XXX_Merge Uses

func (dst *Keyspace) XXX_Merge(src proto.Message)

func (*Keyspace) XXX_Size Uses

func (m *Keyspace) XXX_Size() int

func (*Keyspace) XXX_Unmarshal Uses

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

type RoutingRule Uses

type RoutingRule struct {
    FromTable            string   `protobuf:"bytes,1,opt,name=from_table,json=fromTable,proto3" json:"from_table,omitempty"`
    ToTables             []string `protobuf:"bytes,2,rep,name=to_tables,json=toTables,proto3" json:"to_tables,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

RoutingRule specifies a routing rule.

func (*RoutingRule) Descriptor Uses

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

func (*RoutingRule) GetFromTable Uses

func (m *RoutingRule) GetFromTable() string

func (*RoutingRule) GetToTables Uses

func (m *RoutingRule) GetToTables() []string

func (*RoutingRule) ProtoMessage Uses

func (*RoutingRule) ProtoMessage()

func (*RoutingRule) Reset Uses

func (m *RoutingRule) Reset()

func (*RoutingRule) String Uses

func (m *RoutingRule) String() string

func (*RoutingRule) XXX_DiscardUnknown Uses

func (m *RoutingRule) XXX_DiscardUnknown()

func (*RoutingRule) XXX_Marshal Uses

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

func (*RoutingRule) XXX_Merge Uses

func (dst *RoutingRule) XXX_Merge(src proto.Message)

func (*RoutingRule) XXX_Size Uses

func (m *RoutingRule) XXX_Size() int

func (*RoutingRule) XXX_Unmarshal Uses

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

type RoutingRules Uses

type RoutingRules struct {
    // rules should ideally be a map. However protos dont't allow
    // repeated fields as elements of a map. So, we use a list
    // instead.
    Rules                []*RoutingRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
    XXX_NoUnkeyedLiteral struct{}       `json:"-"`
    XXX_unrecognized     []byte         `json:"-"`
    XXX_sizecache        int32          `json:"-"`
}

RoutingRules specify the high level routing rules for the VSchema.

func (*RoutingRules) Descriptor Uses

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

func (*RoutingRules) GetRules Uses

func (m *RoutingRules) GetRules() []*RoutingRule

func (*RoutingRules) ProtoMessage Uses

func (*RoutingRules) ProtoMessage()

func (*RoutingRules) Reset Uses

func (m *RoutingRules) Reset()

func (*RoutingRules) String Uses

func (m *RoutingRules) String() string

func (*RoutingRules) XXX_DiscardUnknown Uses

func (m *RoutingRules) XXX_DiscardUnknown()

func (*RoutingRules) XXX_Marshal Uses

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

func (*RoutingRules) XXX_Merge Uses

func (dst *RoutingRules) XXX_Merge(src proto.Message)

func (*RoutingRules) XXX_Size Uses

func (m *RoutingRules) XXX_Size() int

func (*RoutingRules) XXX_Unmarshal Uses

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

type SrvVSchema Uses

type SrvVSchema struct {
    // keyspaces is a map of keyspace name -> Keyspace object.
    Keyspaces            map[string]*Keyspace `protobuf:"bytes,1,rep,name=keyspaces,proto3" json:"keyspaces,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    RoutingRules         *RoutingRules        `protobuf:"bytes,2,opt,name=routing_rules,json=routingRules,proto3" json:"routing_rules,omitempty"`
    XXX_NoUnkeyedLiteral struct{}             `json:"-"`
    XXX_unrecognized     []byte               `json:"-"`
    XXX_sizecache        int32                `json:"-"`
}

SrvVSchema is the roll-up of all the Keyspace schema for a cell.

func (*SrvVSchema) Descriptor Uses

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

func (*SrvVSchema) GetKeyspaces Uses

func (m *SrvVSchema) GetKeyspaces() map[string]*Keyspace

func (*SrvVSchema) GetRoutingRules Uses

func (m *SrvVSchema) GetRoutingRules() *RoutingRules

func (*SrvVSchema) ProtoMessage Uses

func (*SrvVSchema) ProtoMessage()

func (*SrvVSchema) Reset Uses

func (m *SrvVSchema) Reset()

func (*SrvVSchema) String Uses

func (m *SrvVSchema) String() string

func (*SrvVSchema) XXX_DiscardUnknown Uses

func (m *SrvVSchema) XXX_DiscardUnknown()

func (*SrvVSchema) XXX_Marshal Uses

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

func (*SrvVSchema) XXX_Merge Uses

func (dst *SrvVSchema) XXX_Merge(src proto.Message)

func (*SrvVSchema) XXX_Size Uses

func (m *SrvVSchema) XXX_Size() int

func (*SrvVSchema) XXX_Unmarshal Uses

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

type Table Uses

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,proto3" json:"type,omitempty"`
    // column_vindexes associates columns to vindexes.
    ColumnVindexes []*ColumnVindex `protobuf:"bytes,2,rep,name=column_vindexes,json=columnVindexes,proto3" 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,proto3" json:"auto_increment,omitempty"`
    // columns lists the columns for the table.
    Columns []*Column `protobuf:"bytes,4,rep,name=columns,proto3" json:"columns,omitempty"`
    // pinned pins an unsharded table to a specific
    // shard, as dictated by the keyspace id.
    // The keyspace id is represented in hex form
    // like in keyranges.
    Pinned string `protobuf:"bytes,5,opt,name=pinned,proto3" json:"pinned,omitempty"`
    // column_list_authoritative is set to true if columns is
    // an authoritative list for the table. This allows
    // us to expand 'select *' expressions.
    ColumnListAuthoritative bool     `protobuf:"varint,6,opt,name=column_list_authoritative,json=columnListAuthoritative,proto3" json:"column_list_authoritative,omitempty"`
    XXX_NoUnkeyedLiteral    struct{} `json:"-"`
    XXX_unrecognized        []byte   `json:"-"`
    XXX_sizecache           int32    `json:"-"`
}

Table is the table info for a Keyspace.

func (*Table) Descriptor Uses

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

func (*Table) GetAutoIncrement Uses

func (m *Table) GetAutoIncrement() *AutoIncrement

func (*Table) GetColumnListAuthoritative Uses

func (m *Table) GetColumnListAuthoritative() bool

func (*Table) GetColumnVindexes Uses

func (m *Table) GetColumnVindexes() []*ColumnVindex

func (*Table) GetColumns Uses

func (m *Table) GetColumns() []*Column

func (*Table) GetPinned Uses

func (m *Table) GetPinned() string

func (*Table) GetType Uses

func (m *Table) GetType() string

func (*Table) ProtoMessage Uses

func (*Table) ProtoMessage()

func (*Table) Reset Uses

func (m *Table) Reset()

func (*Table) String Uses

func (m *Table) String() string

func (*Table) XXX_DiscardUnknown Uses

func (m *Table) XXX_DiscardUnknown()

func (*Table) XXX_Marshal Uses

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

func (*Table) XXX_Merge Uses

func (dst *Table) XXX_Merge(src proto.Message)

func (*Table) XXX_Size Uses

func (m *Table) XXX_Size() int

func (*Table) XXX_Unmarshal Uses

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

type Vindex Uses

type Vindex struct {
    // The type must match one of the predefined
    // (or plugged in) vindex names.
    Type string `protobuf:"bytes,1,opt,name=type,proto3" 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 `protobuf:"bytes,2,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // 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,proto3" json:"owner,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Vindex is the vindex info for a Keyspace.

func (*Vindex) Descriptor Uses

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

func (*Vindex) GetOwner Uses

func (m *Vindex) GetOwner() string

func (*Vindex) GetParams Uses

func (m *Vindex) GetParams() map[string]string

func (*Vindex) GetType Uses

func (m *Vindex) GetType() string

func (*Vindex) ProtoMessage Uses

func (*Vindex) ProtoMessage()

func (*Vindex) Reset Uses

func (m *Vindex) Reset()

func (*Vindex) String Uses

func (m *Vindex) String() string

func (*Vindex) XXX_DiscardUnknown Uses

func (m *Vindex) XXX_DiscardUnknown()

func (*Vindex) XXX_Marshal Uses

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

func (*Vindex) XXX_Merge Uses

func (dst *Vindex) XXX_Merge(src proto.Message)

func (*Vindex) XXX_Size Uses

func (m *Vindex) XXX_Size() int

func (*Vindex) XXX_Unmarshal Uses

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

Package vschema imports 4 packages (graph) and is imported by 24 packages. Updated 2019-06-13. Refresh now. Tools for package owners.