Documentation ¶
Index ¶
- Variables
- type Column
- type DataPage
- type DataType
- type Field
- func (*Field) Descriptor() ([]byte, []int)deprecated
- func (x *Field) GetBoolVal() bool
- func (x *Field) GetDoubleVal() float64
- func (x *Field) GetDtype() DataType
- func (x *Field) GetIntVal() int32
- func (x *Field) GetIsNull() bool
- func (x *Field) GetName() string
- func (x *Field) GetNull() bool
- func (x *Field) GetStringVal() string
- func (m *Field) GetValue() isField_Value
- func (*Field) ProtoMessage()
- func (x *Field) ProtoReflect() protoreflect.Message
- func (x *Field) Reset()
- func (x *Field) String() string
- type Field_BoolVal
- type Field_DoubleVal
- type Field_IntVal
- type Field_Null
- type Field_StringVal
- type Record
- type TableSchema
- func (*TableSchema) Descriptor() ([]byte, []int)deprecated
- func (x *TableSchema) GetColumns() []*Column
- func (x *TableSchema) GetTableName() string
- func (*TableSchema) ProtoMessage()
- func (x *TableSchema) ProtoReflect() protoreflect.Message
- func (x *TableSchema) Reset()
- func (x *TableSchema) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DataType_name = map[int32]string{ 0: "UNKNOWN", 1: "STRING", 2: "INT", 3: "FLOAT", 4: "BOOL", } DataType_value = map[string]int32{ "UNKNOWN": 0, "STRING": 1, "INT": 2, "FLOAT": 3, "BOOL": 4, } )
Enum value maps for DataType.
View Source
var File_bbdb_v1alpha_bbdb_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct { // The column's index in the table schema Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // The column's name Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The column's data type Dtype DataType `protobuf:"varint,3,opt,name=dtype,proto3,enum=bbdb.v1alpha.DataType" json:"dtype,omitempty"` // contains filtered or unexported fields }
Column represents a column definition in a DB schema table.
func (*Column) Descriptor
deprecated
func (*Column) ProtoMessage ¶
func (*Column) ProtoMessage()
func (*Column) ProtoReflect ¶
func (x *Column) ProtoReflect() protoreflect.Message
type DataPage ¶
type DataPage struct {
// contains filtered or unexported fields
}
func (*DataPage) Descriptor
deprecated
func (*DataPage) ProtoMessage ¶
func (*DataPage) ProtoMessage()
func (*DataPage) ProtoReflect ¶
func (x *DataPage) ProtoReflect() protoreflect.Message
type DataType ¶
type DataType int32
Accepted data types for a field
func (DataType) Descriptor ¶
func (DataType) Descriptor() protoreflect.EnumDescriptor
func (DataType) EnumDescriptor
deprecated
func (DataType) Number ¶
func (x DataType) Number() protoreflect.EnumNumber
func (DataType) Type ¶
func (DataType) Type() protoreflect.EnumType
type Field ¶
type Field struct { // The name of the field Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The type of the field Dtype DataType `protobuf:"varint,2,opt,name=dtype,proto3,enum=bbdb.v1alpha.DataType" json:"dtype,omitempty"` // Is the field null? IsNull bool `protobuf:"varint,3,opt,name=is_null,json=isNull,proto3" json:"is_null,omitempty"` // The value of the field // // Types that are assignable to Value: // *Field_Null // *Field_StringVal // *Field_IntVal // *Field_DoubleVal // *Field_BoolVal Value isField_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
Field represents a field in a DB table record.
func (*Field) Descriptor
deprecated
func (*Field) GetBoolVal ¶
func (*Field) GetDoubleVal ¶
func (*Field) GetStringVal ¶
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
func (*Field) ProtoReflect ¶
func (x *Field) ProtoReflect() protoreflect.Message
type Field_BoolVal ¶
type Field_BoolVal struct {
BoolVal bool `protobuf:"varint,8,opt,name=bool_val,json=boolVal,proto3,oneof"`
}
type Field_DoubleVal ¶
type Field_DoubleVal struct {
DoubleVal float64 `protobuf:"fixed64,7,opt,name=double_val,json=doubleVal,proto3,oneof"`
}
type Field_IntVal ¶
type Field_IntVal struct {
IntVal int32 `protobuf:"varint,6,opt,name=int_val,json=intVal,proto3,oneof"`
}
type Field_Null ¶
type Field_Null struct {
Null bool `protobuf:"varint,4,opt,name=null,proto3,oneof"`
}
type Field_StringVal ¶
type Field_StringVal struct {
StringVal string `protobuf:"bytes,5,opt,name=string_val,json=stringVal,proto3,oneof"`
}
type Record ¶
type Record struct { // Fields of the record Fields []*Field `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` // contains filtered or unexported fields }
Record represents a record in a DB table.
func (*Record) Descriptor
deprecated
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) ProtoReflect ¶
func (x *Record) ProtoReflect() protoreflect.Message
type TableSchema ¶
type TableSchema struct { // The name of the table TableName string `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` // The columns of the table Columns []*Column `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"` // contains filtered or unexported fields }
TableSchema represents a DB table schema.
func (*TableSchema) Descriptor
deprecated
func (*TableSchema) Descriptor() ([]byte, []int)
Deprecated: Use TableSchema.ProtoReflect.Descriptor instead.
func (*TableSchema) GetColumns ¶
func (x *TableSchema) GetColumns() []*Column
func (*TableSchema) GetTableName ¶
func (x *TableSchema) GetTableName() string
func (*TableSchema) ProtoMessage ¶
func (*TableSchema) ProtoMessage()
func (*TableSchema) ProtoReflect ¶
func (x *TableSchema) ProtoReflect() protoreflect.Message
func (*TableSchema) Reset ¶
func (x *TableSchema) Reset()
func (*TableSchema) String ¶
func (x *TableSchema) String() string
Click to show internal directories.
Click to hide internal directories.