bbdbv1alpha

package
v0.0.0-...-b432901 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Column.ProtoReflect.Descriptor instead.

func (*Column) GetDtype

func (x *Column) GetDtype() DataType

func (*Column) GetIndex

func (x *Column) GetIndex() int32

func (*Column) GetName

func (x *Column) GetName() string

func (*Column) ProtoMessage

func (*Column) ProtoMessage()

func (*Column) ProtoReflect

func (x *Column) ProtoReflect() protoreflect.Message

func (*Column) Reset

func (x *Column) Reset()

func (*Column) String

func (x *Column) String() string

type DataPage

type DataPage struct {
	// contains filtered or unexported fields
}

func (*DataPage) Descriptor deprecated

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

Deprecated: Use DataPage.ProtoReflect.Descriptor instead.

func (*DataPage) ProtoMessage

func (*DataPage) ProtoMessage()

func (*DataPage) ProtoReflect

func (x *DataPage) ProtoReflect() protoreflect.Message

func (*DataPage) Reset

func (x *DataPage) Reset()

func (*DataPage) String

func (x *DataPage) String() string

type DataType

type DataType int32

Accepted data types for a field

const (
	DataType_UNKNOWN DataType = 0
	// String data
	DataType_STRING DataType = 1
	// A 32-bit signed integer
	DataType_INT DataType = 2
	// A 64-bit signed integer
	DataType_FLOAT DataType = 3
	// A boolean value
	DataType_BOOL DataType = 4
)

func (DataType) Descriptor

func (DataType) Descriptor() protoreflect.EnumDescriptor

func (DataType) Enum

func (x DataType) Enum() *DataType

func (DataType) EnumDescriptor deprecated

func (DataType) EnumDescriptor() ([]byte, []int)

Deprecated: Use DataType.Descriptor instead.

func (DataType) Number

func (x DataType) Number() protoreflect.EnumNumber

func (DataType) String

func (x DataType) String() string

func (DataType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetBoolVal

func (x *Field) GetBoolVal() bool

func (*Field) GetDoubleVal

func (x *Field) GetDoubleVal() float64

func (*Field) GetDtype

func (x *Field) GetDtype() DataType

func (*Field) GetIntVal

func (x *Field) GetIntVal() int32

func (*Field) GetIsNull

func (x *Field) GetIsNull() bool

func (*Field) GetName

func (x *Field) GetName() string

func (*Field) GetNull

func (x *Field) GetNull() bool

func (*Field) GetStringVal

func (x *Field) GetStringVal() string

func (*Field) GetValue

func (m *Field) GetValue() isField_Value

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) ProtoReflect

func (x *Field) ProtoReflect() protoreflect.Message

func (*Field) Reset

func (x *Field) Reset()

func (*Field) String

func (x *Field) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetFields

func (x *Record) GetFields() []*Field

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

func (x *Record) ProtoReflect() protoreflect.Message

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

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

Jump to

Keyboard shortcuts

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