Documentation
¶
Index ¶
- Variables
- type ColumnSchema
- func (*ColumnSchema) Descriptor() ([]byte, []int)deprecated
- func (x *ColumnSchema) GetIsNullable() bool
- func (x *ColumnSchema) GetIsPrimarykey() bool
- func (x *ColumnSchema) GetName() string
- func (x *ColumnSchema) GetTypeName() string
- func (*ColumnSchema) ProtoMessage()
- func (x *ColumnSchema) ProtoReflect() protoreflect.Message
- func (x *ColumnSchema) Reset()
- func (x *ColumnSchema) String() string
- type ColumnValue
- func (*ColumnValue) Descriptor() ([]byte, []int)deprecated
- func (x *ColumnValue) GetArrayValue() string
- func (x *ColumnValue) GetBoolValue() bool
- func (m *ColumnValue) GetJsonValue() isColumnValue_JsonValue
- func (x *ColumnValue) GetNumberFloatValue() float32
- func (x *ColumnValue) GetNumberIntegerValue() int64
- func (x *ColumnValue) GetObjectValue() string
- func (x *ColumnValue) GetStringValue() string
- func (*ColumnValue) ProtoMessage()
- func (x *ColumnValue) ProtoReflect() protoreflect.Message
- func (x *ColumnValue) Reset()
- func (x *ColumnValue) String() string
- type ColumnValue_ArrayValue
- type ColumnValue_BoolValue
- type ColumnValue_NumberFloatValue
- type ColumnValue_NumberIntegerValue
- type ColumnValue_ObjectValue
- type ColumnValue_StringValue
- type Row
- type RowSet
- func (*RowSet) Descriptor() ([]byte, []int)deprecated
- func (x *RowSet) GetColumnSchemas() []*ColumnSchema
- func (x *RowSet) GetRows() []*Row
- func (x *RowSet) GetSchemaName() string
- func (x *RowSet) GetTableName() string
- func (x *RowSet) JSONString() string
- func (*RowSet) ProtoMessage()
- func (x *RowSet) ProtoReflect() protoreflect.Message
- func (x *RowSet) Reset()
- func (x *RowSet) RowJSONString(index int) string
- func (x *RowSet) RowMap(rowIndex int) map[string]interface{}
- func (x *RowSet) String() string
- type RowWithSchema
- func (*RowWithSchema) Descriptor() ([]byte, []int)deprecated
- func (x *RowWithSchema) GetColumns() []*ColumnValue
- func (x *RowWithSchema) GetSchemas() []*ColumnSchema
- func (*RowWithSchema) ProtoMessage()
- func (x *RowWithSchema) ProtoReflect() protoreflect.Message
- func (x *RowWithSchema) Reset()
- func (x *RowWithSchema) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_fieldset_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ColumnSchema ¶
type ColumnSchema struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
TypeName string `protobuf:"bytes,2,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
IsNullable bool `protobuf:"varint,3,opt,name=is_nullable,json=isNullable,proto3" json:"is_nullable,omitempty"`
IsPrimarykey bool `protobuf:"varint,4,opt,name=is_primarykey,json=isPrimarykey,proto3" json:"is_primarykey,omitempty"`
// contains filtered or unexported fields
}
func (*ColumnSchema) Descriptor
deprecated
func (*ColumnSchema) Descriptor() ([]byte, []int)
Deprecated: Use ColumnSchema.ProtoReflect.Descriptor instead.
func (*ColumnSchema) GetIsNullable ¶
func (x *ColumnSchema) GetIsNullable() bool
func (*ColumnSchema) GetIsPrimarykey ¶
func (x *ColumnSchema) GetIsPrimarykey() bool
func (*ColumnSchema) GetName ¶
func (x *ColumnSchema) GetName() string
func (*ColumnSchema) GetTypeName ¶
func (x *ColumnSchema) GetTypeName() string
func (*ColumnSchema) ProtoMessage ¶
func (*ColumnSchema) ProtoMessage()
func (*ColumnSchema) ProtoReflect ¶
func (x *ColumnSchema) ProtoReflect() protoreflect.Message
func (*ColumnSchema) Reset ¶
func (x *ColumnSchema) Reset()
func (*ColumnSchema) String ¶
func (x *ColumnSchema) String() string
type ColumnValue ¶
type ColumnValue struct {
// https://www.w3schools.com/js/js_json_datatypes.asp
//
// Types that are assignable to JsonValue:
// *ColumnValue_StringValue
// *ColumnValue_NumberFloatValue
// *ColumnValue_NumberIntegerValue
// *ColumnValue_ObjectValue
// *ColumnValue_ArrayValue
// *ColumnValue_BoolValue
JsonValue isColumnValue_JsonValue `protobuf_oneof:"json_value"`
// contains filtered or unexported fields
}
func (*ColumnValue) Descriptor
deprecated
func (*ColumnValue) Descriptor() ([]byte, []int)
Deprecated: Use ColumnValue.ProtoReflect.Descriptor instead.
func (*ColumnValue) GetArrayValue ¶
func (x *ColumnValue) GetArrayValue() string
func (*ColumnValue) GetBoolValue ¶
func (x *ColumnValue) GetBoolValue() bool
func (*ColumnValue) GetJsonValue ¶
func (m *ColumnValue) GetJsonValue() isColumnValue_JsonValue
func (*ColumnValue) GetNumberFloatValue ¶
func (x *ColumnValue) GetNumberFloatValue() float32
func (*ColumnValue) GetNumberIntegerValue ¶
func (x *ColumnValue) GetNumberIntegerValue() int64
func (*ColumnValue) GetObjectValue ¶
func (x *ColumnValue) GetObjectValue() string
func (*ColumnValue) GetStringValue ¶
func (x *ColumnValue) GetStringValue() string
func (*ColumnValue) ProtoMessage ¶
func (*ColumnValue) ProtoMessage()
func (*ColumnValue) ProtoReflect ¶
func (x *ColumnValue) ProtoReflect() protoreflect.Message
func (*ColumnValue) Reset ¶
func (x *ColumnValue) Reset()
func (*ColumnValue) String ¶
func (x *ColumnValue) String() string
type ColumnValue_ArrayValue ¶
type ColumnValue_ArrayValue struct {
ArrayValue string `protobuf:"bytes,5,opt,name=array_value,json=arrayValue,proto3,oneof"`
}
type ColumnValue_BoolValue ¶
type ColumnValue_BoolValue struct {
BoolValue bool `protobuf:"varint,6,opt,name=bool_value,json=boolValue,proto3,oneof"`
}
type ColumnValue_NumberFloatValue ¶
type ColumnValue_NumberFloatValue struct {
NumberFloatValue float32 `protobuf:"fixed32,2,opt,name=number_float_value,json=numberFloatValue,proto3,oneof"`
}
type ColumnValue_NumberIntegerValue ¶
type ColumnValue_NumberIntegerValue struct {
NumberIntegerValue int64 `protobuf:"varint,3,opt,name=number_integer_value,json=numberIntegerValue,proto3,oneof"`
}
type ColumnValue_ObjectValue ¶
type ColumnValue_ObjectValue struct {
ObjectValue string `protobuf:"bytes,4,opt,name=object_value,json=objectValue,proto3,oneof"`
}
type ColumnValue_StringValue ¶
type ColumnValue_StringValue struct {
StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"`
}
type Row ¶
type Row struct {
Columns []*ColumnValue `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"`
// contains filtered or unexported fields
}
func (*Row) Descriptor
deprecated
func (*Row) GetColumns ¶
func (x *Row) GetColumns() []*ColumnValue
func (*Row) ProtoMessage ¶
func (*Row) ProtoMessage()
func (*Row) ProtoReflect ¶
func (x *Row) ProtoReflect() protoreflect.Message
type RowSet ¶
type RowSet struct {
TableName string `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
ColumnSchemas []*ColumnSchema `protobuf:"bytes,2,rep,name=column_schemas,json=columnSchemas,proto3" json:"column_schemas,omitempty"`
Rows []*Row `protobuf:"bytes,3,rep,name=rows,proto3" json:"rows,omitempty"`
SchemaName string `protobuf:"bytes,4,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"`
// contains filtered or unexported fields
}
func (*RowSet) Descriptor
deprecated
func (*RowSet) GetColumnSchemas ¶
func (x *RowSet) GetColumnSchemas() []*ColumnSchema
func (*RowSet) GetSchemaName ¶ added in v0.14.0
func (*RowSet) GetTableName ¶
func (*RowSet) JSONString ¶ added in v0.10.0
JSONString returns a JSON-encoded string representation of the RowSet.
func (*RowSet) ProtoMessage ¶
func (*RowSet) ProtoMessage()
func (*RowSet) ProtoReflect ¶
func (x *RowSet) ProtoReflect() protoreflect.Message
func (*RowSet) RowJSONString ¶ added in v0.10.0
RowJSONString returns a JSON-encoded string representation of a row at the specified index in the RowSet.
index: The index of the row to be encoded.
string: A string representation of the row in JSON format.
options: The JSON output options.
type RowWithSchema ¶ added in v0.10.0
type RowWithSchema struct {
Schemas []*ColumnSchema `protobuf:"bytes,1,rep,name=schemas,proto3" json:"schemas,omitempty"`
Columns []*ColumnValue `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"`
// contains filtered or unexported fields
}
func (*RowWithSchema) Descriptor
deprecated
added in
v0.10.0
func (*RowWithSchema) Descriptor() ([]byte, []int)
Deprecated: Use RowWithSchema.ProtoReflect.Descriptor instead.
func (*RowWithSchema) GetColumns ¶ added in v0.10.0
func (x *RowWithSchema) GetColumns() []*ColumnValue
func (*RowWithSchema) GetSchemas ¶ added in v0.10.0
func (x *RowWithSchema) GetSchemas() []*ColumnSchema
func (*RowWithSchema) ProtoMessage ¶ added in v0.10.0
func (*RowWithSchema) ProtoMessage()
func (*RowWithSchema) ProtoReflect ¶ added in v0.10.0
func (x *RowWithSchema) ProtoReflect() protoreflect.Message
func (*RowWithSchema) Reset ¶ added in v0.10.0
func (x *RowWithSchema) Reset()
func (*RowWithSchema) String ¶ added in v0.10.0
func (x *RowWithSchema) String() string
Click to show internal directories.
Click to hide internal directories.