Documentation
¶
Index ¶
- Constants
- func NewSRPCSqlTableViewResourceServiceHandler(impl SRPCSqlTableViewResourceServiceServer, serviceID string) srpc.Handler
- func NewTableViewBlock() block.Block
- func SRPCRegisterSqlTableViewResourceService(mux srpc.Mux, impl SRPCSqlTableViewResourceServiceServer) error
- func SyncTableViewGraphQuads(ctx context.Context, ws world.WorldState, objectKey string) error
- func WriteTableViewRootRef(ctx context.Context, ws world.WorldState, tableView *TableView) (*bucket.ObjectRef, error)
- type FetchRowsRequest
- func (m *FetchRowsRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *FetchRowsRequest) CloneVT() *FetchRowsRequest
- func (this *FetchRowsRequest) EqualMessageVT(thatMsg any) bool
- func (this *FetchRowsRequest) EqualVT(that *FetchRowsRequest) bool
- func (x *FetchRowsRequest) MarshalJSON() ([]byte, error)
- func (x *FetchRowsRequest) MarshalProtoJSON(s *json.MarshalState)
- func (x *FetchRowsRequest) MarshalProtoText() string
- func (m *FetchRowsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *FetchRowsRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *FetchRowsRequest) MarshalVT() (dAtA []byte, err error)
- func (*FetchRowsRequest) ProtoMessage()
- func (x *FetchRowsRequest) Reset()
- func (m *FetchRowsRequest) SizeVT() (n int)
- func (x *FetchRowsRequest) String() string
- func (x *FetchRowsRequest) UnmarshalJSON(b []byte) error
- func (x *FetchRowsRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *FetchRowsRequest) UnmarshalVT(dAtA []byte) error
- type FetchRowsResponse
- func (m *FetchRowsResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *FetchRowsResponse) CloneVT() *FetchRowsResponse
- func (this *FetchRowsResponse) EqualMessageVT(thatMsg any) bool
- func (this *FetchRowsResponse) EqualVT(that *FetchRowsResponse) bool
- func (x *FetchRowsResponse) GetColumns() []*sql.ColumnSchema
- func (x *FetchRowsResponse) GetRowBatches() []*sql.RowBatch
- func (x *FetchRowsResponse) GetRowCount() uint64
- func (x *FetchRowsResponse) GetTruncated() bool
- func (x *FetchRowsResponse) MarshalJSON() ([]byte, error)
- func (x *FetchRowsResponse) MarshalProtoJSON(s *json.MarshalState)
- func (x *FetchRowsResponse) MarshalProtoText() string
- func (m *FetchRowsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *FetchRowsResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *FetchRowsResponse) MarshalVT() (dAtA []byte, err error)
- func (*FetchRowsResponse) ProtoMessage()
- func (x *FetchRowsResponse) Reset()
- func (m *FetchRowsResponse) SizeVT() (n int)
- func (x *FetchRowsResponse) String() string
- func (x *FetchRowsResponse) UnmarshalJSON(b []byte) error
- func (x *FetchRowsResponse) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *FetchRowsResponse) UnmarshalVT(dAtA []byte) error
- type GetTableViewRequest
- func (m *GetTableViewRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *GetTableViewRequest) CloneVT() *GetTableViewRequest
- func (this *GetTableViewRequest) EqualMessageVT(thatMsg any) bool
- func (this *GetTableViewRequest) EqualVT(that *GetTableViewRequest) bool
- func (x *GetTableViewRequest) MarshalJSON() ([]byte, error)
- func (x *GetTableViewRequest) MarshalProtoJSON(s *json.MarshalState)
- func (x *GetTableViewRequest) MarshalProtoText() string
- func (m *GetTableViewRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetTableViewRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetTableViewRequest) MarshalVT() (dAtA []byte, err error)
- func (*GetTableViewRequest) ProtoMessage()
- func (x *GetTableViewRequest) Reset()
- func (m *GetTableViewRequest) SizeVT() (n int)
- func (x *GetTableViewRequest) String() string
- func (x *GetTableViewRequest) UnmarshalJSON(b []byte) error
- func (x *GetTableViewRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *GetTableViewRequest) UnmarshalVT(dAtA []byte) error
- type GetTableViewResponse
- func (m *GetTableViewResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *GetTableViewResponse) CloneVT() *GetTableViewResponse
- func (this *GetTableViewResponse) EqualMessageVT(thatMsg any) bool
- func (this *GetTableViewResponse) EqualVT(that *GetTableViewResponse) bool
- func (x *GetTableViewResponse) GetTableView() *TableView
- func (x *GetTableViewResponse) MarshalJSON() ([]byte, error)
- func (x *GetTableViewResponse) MarshalProtoJSON(s *json.MarshalState)
- func (x *GetTableViewResponse) MarshalProtoText() string
- func (m *GetTableViewResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetTableViewResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetTableViewResponse) MarshalVT() (dAtA []byte, err error)
- func (*GetTableViewResponse) ProtoMessage()
- func (x *GetTableViewResponse) Reset()
- func (m *GetTableViewResponse) SizeVT() (n int)
- func (x *GetTableViewResponse) String() string
- func (x *GetTableViewResponse) UnmarshalJSON(b []byte) error
- func (x *GetTableViewResponse) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *GetTableViewResponse) UnmarshalVT(dAtA []byte) error
- type SRPCSqlTableViewResourceServiceClient
- type SRPCSqlTableViewResourceServiceHandler
- func (SRPCSqlTableViewResourceServiceHandler) GetMethodIDs() []string
- func (d *SRPCSqlTableViewResourceServiceHandler) GetServiceID() string
- func (d *SRPCSqlTableViewResourceServiceHandler) InvokeMethod(serviceID, methodID string, strm srpc.Stream) (bool, error)
- func (SRPCSqlTableViewResourceServiceHandler) InvokeMethod_FetchRows(impl SRPCSqlTableViewResourceServiceServer, strm srpc.Stream) error
- func (SRPCSqlTableViewResourceServiceHandler) InvokeMethod_GetTableView(impl SRPCSqlTableViewResourceServiceServer, strm srpc.Stream) error
- type SRPCSqlTableViewResourceServiceServer
- type SRPCSqlTableViewResourceService_FetchRowsStream
- type SRPCSqlTableViewResourceService_GetTableViewStream
- type SortOrder
- func (m *SortOrder) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *SortOrder) CloneVT() *SortOrder
- func (this *SortOrder) EqualMessageVT(thatMsg any) bool
- func (this *SortOrder) EqualVT(that *SortOrder) bool
- func (x *SortOrder) GetColumnName() string
- func (x *SortOrder) GetDescending() bool
- func (x *SortOrder) MarshalJSON() ([]byte, error)
- func (x *SortOrder) MarshalProtoJSON(s *json.MarshalState)
- func (x *SortOrder) MarshalProtoText() string
- func (m *SortOrder) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SortOrder) MarshalToVT(dAtA []byte) (int, error)
- func (m *SortOrder) MarshalVT() (dAtA []byte, err error)
- func (*SortOrder) ProtoMessage()
- func (x *SortOrder) Reset()
- func (m *SortOrder) SizeVT() (n int)
- func (x *SortOrder) String() string
- func (x *SortOrder) UnmarshalJSON(b []byte) error
- func (x *SortOrder) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *SortOrder) UnmarshalVT(dAtA []byte) error
- type TableView
- func (m *TableView) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *TableView) CloneVT() *TableView
- func (this *TableView) EqualMessageVT(thatMsg any) bool
- func (this *TableView) EqualVT(that *TableView) bool
- func (x *TableView) GetDescription() string
- func (x *TableView) GetDisplayName() string
- func (x *TableView) GetProjectedColumns() []string
- func (x *TableView) GetRowLimit() uint32
- func (x *TableView) GetSortOrder() []*SortOrder
- func (x *TableView) GetTargetSchemaObjectKey() string
- func (x *TableView) GetTargetTableName() string
- func (x *TableView) GetWhereExpression() string
- func (x *TableView) GetWhereParameters() []*sql.SqlValue
- func (v *TableView) MarshalBlock() ([]byte, error)
- func (x *TableView) MarshalJSON() ([]byte, error)
- func (x *TableView) MarshalProtoJSON(s *json.MarshalState)
- func (x *TableView) MarshalProtoText() string
- func (m *TableView) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TableView) MarshalToVT(dAtA []byte) (int, error)
- func (m *TableView) MarshalVT() (dAtA []byte, err error)
- func (*TableView) ProtoMessage()
- func (x *TableView) Reset()
- func (m *TableView) SizeVT() (n int)
- func (x *TableView) String() string
- func (v *TableView) UnmarshalBlock(data []byte) error
- func (x *TableView) UnmarshalJSON(b []byte) error
- func (x *TableView) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *TableView) UnmarshalVT(dAtA []byte) error
- func (v *TableView) Validate() error
Constants ¶
const SRPCSqlTableViewResourceServiceServiceID = "s4wave.sql.table_view.SqlTableViewResourceService"
const SqlTableViewTypeID = "sql/table-view"
SqlTableViewTypeID is the world ObjectType id for SQL table views.
Variables ¶
This section is empty.
Functions ¶
func NewSRPCSqlTableViewResourceServiceHandler ¶
func NewSRPCSqlTableViewResourceServiceHandler(impl SRPCSqlTableViewResourceServiceServer, serviceID string) srpc.Handler
NewSRPCSqlTableViewResourceServiceHandler constructs a new RPC handler. serviceID: if empty, uses default: s4wave.sql.table_view.SqlTableViewResourceService
func NewTableViewBlock ¶
NewTableViewBlock constructs a SQL table view block.
func SRPCRegisterSqlTableViewResourceService ¶
func SRPCRegisterSqlTableViewResourceService(mux srpc.Mux, impl SRPCSqlTableViewResourceServiceServer) error
SRPCRegisterSqlTableViewResourceService registers the implementation with the mux. Uses the default serviceID: s4wave.sql.table_view.SqlTableViewResourceService
func SyncTableViewGraphQuads ¶
SyncTableViewGraphQuads replaces the table view's target schema graph link.
func WriteTableViewRootRef ¶
func WriteTableViewRootRef(ctx context.Context, ws world.WorldState, tableView *TableView) (*bucket.ObjectRef, error)
WriteTableViewRootRef writes a SQL table view root block and returns its ref.
Types ¶
type FetchRowsRequest ¶
type FetchRowsRequest struct {
// contains filtered or unexported fields
}
FetchRowsRequest executes the saved table view.
func (*FetchRowsRequest) CloneMessageVT ¶
func (m *FetchRowsRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*FetchRowsRequest) CloneVT ¶
func (m *FetchRowsRequest) CloneVT() *FetchRowsRequest
func (*FetchRowsRequest) EqualMessageVT ¶
func (this *FetchRowsRequest) EqualMessageVT(thatMsg any) bool
func (*FetchRowsRequest) EqualVT ¶
func (this *FetchRowsRequest) EqualVT(that *FetchRowsRequest) bool
func (*FetchRowsRequest) MarshalJSON ¶
func (x *FetchRowsRequest) MarshalJSON() ([]byte, error)
MarshalJSON marshals the FetchRowsRequest to JSON.
func (*FetchRowsRequest) MarshalProtoJSON ¶
func (x *FetchRowsRequest) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the FetchRowsRequest message to JSON.
func (*FetchRowsRequest) MarshalProtoText ¶
func (x *FetchRowsRequest) MarshalProtoText() string
func (*FetchRowsRequest) MarshalToSizedBufferVT ¶
func (m *FetchRowsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*FetchRowsRequest) MarshalToVT ¶
func (m *FetchRowsRequest) MarshalToVT(dAtA []byte) (int, error)
func (*FetchRowsRequest) MarshalVT ¶
func (m *FetchRowsRequest) MarshalVT() (dAtA []byte, err error)
func (*FetchRowsRequest) ProtoMessage ¶
func (*FetchRowsRequest) ProtoMessage()
func (*FetchRowsRequest) Reset ¶
func (x *FetchRowsRequest) Reset()
func (*FetchRowsRequest) SizeVT ¶
func (m *FetchRowsRequest) SizeVT() (n int)
func (*FetchRowsRequest) String ¶
func (x *FetchRowsRequest) String() string
func (*FetchRowsRequest) UnmarshalJSON ¶
func (x *FetchRowsRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the FetchRowsRequest from JSON.
func (*FetchRowsRequest) UnmarshalProtoJSON ¶
func (x *FetchRowsRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the FetchRowsRequest message from JSON.
func (*FetchRowsRequest) UnmarshalVT ¶
func (m *FetchRowsRequest) UnmarshalVT(dAtA []byte) error
type FetchRowsResponse ¶
type FetchRowsResponse struct {
// Columns describes the returned columns.
Columns []*sql.ColumnSchema `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"`
// RowBatches stores returned rows in column order.
RowBatches []*sql.RowBatch `protobuf:"bytes,2,rep,name=row_batches,json=rowBatches,proto3" json:"rowBatches,omitempty"`
// RowCount is the number of returned rows.
RowCount uint64 `protobuf:"varint,3,opt,name=row_count,json=rowCount,proto3" json:"rowCount,omitempty"`
// Truncated indicates rows were omitted by the view row limit.
Truncated bool `protobuf:"varint,4,opt,name=truncated,proto3" json:"truncated,omitempty"`
// contains filtered or unexported fields
}
FetchRowsResponse contains rows returned by the table view.
func (*FetchRowsResponse) CloneMessageVT ¶
func (m *FetchRowsResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*FetchRowsResponse) CloneVT ¶
func (m *FetchRowsResponse) CloneVT() *FetchRowsResponse
func (*FetchRowsResponse) EqualMessageVT ¶
func (this *FetchRowsResponse) EqualMessageVT(thatMsg any) bool
func (*FetchRowsResponse) EqualVT ¶
func (this *FetchRowsResponse) EqualVT(that *FetchRowsResponse) bool
func (*FetchRowsResponse) GetColumns ¶
func (x *FetchRowsResponse) GetColumns() []*sql.ColumnSchema
func (*FetchRowsResponse) GetRowBatches ¶
func (x *FetchRowsResponse) GetRowBatches() []*sql.RowBatch
func (*FetchRowsResponse) GetRowCount ¶
func (x *FetchRowsResponse) GetRowCount() uint64
func (*FetchRowsResponse) GetTruncated ¶
func (x *FetchRowsResponse) GetTruncated() bool
func (*FetchRowsResponse) MarshalJSON ¶
func (x *FetchRowsResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals the FetchRowsResponse to JSON.
func (*FetchRowsResponse) MarshalProtoJSON ¶
func (x *FetchRowsResponse) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the FetchRowsResponse message to JSON.
func (*FetchRowsResponse) MarshalProtoText ¶
func (x *FetchRowsResponse) MarshalProtoText() string
func (*FetchRowsResponse) MarshalToSizedBufferVT ¶
func (m *FetchRowsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*FetchRowsResponse) MarshalToVT ¶
func (m *FetchRowsResponse) MarshalToVT(dAtA []byte) (int, error)
func (*FetchRowsResponse) MarshalVT ¶
func (m *FetchRowsResponse) MarshalVT() (dAtA []byte, err error)
func (*FetchRowsResponse) ProtoMessage ¶
func (*FetchRowsResponse) ProtoMessage()
func (*FetchRowsResponse) Reset ¶
func (x *FetchRowsResponse) Reset()
func (*FetchRowsResponse) SizeVT ¶
func (m *FetchRowsResponse) SizeVT() (n int)
func (*FetchRowsResponse) String ¶
func (x *FetchRowsResponse) String() string
func (*FetchRowsResponse) UnmarshalJSON ¶
func (x *FetchRowsResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the FetchRowsResponse from JSON.
func (*FetchRowsResponse) UnmarshalProtoJSON ¶
func (x *FetchRowsResponse) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the FetchRowsResponse message from JSON.
func (*FetchRowsResponse) UnmarshalVT ¶
func (m *FetchRowsResponse) UnmarshalVT(dAtA []byte) error
type GetTableViewRequest ¶
type GetTableViewRequest struct {
// contains filtered or unexported fields
}
GetTableViewRequest is a request for table view metadata.
func (*GetTableViewRequest) CloneMessageVT ¶
func (m *GetTableViewRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*GetTableViewRequest) CloneVT ¶
func (m *GetTableViewRequest) CloneVT() *GetTableViewRequest
func (*GetTableViewRequest) EqualMessageVT ¶
func (this *GetTableViewRequest) EqualMessageVT(thatMsg any) bool
func (*GetTableViewRequest) EqualVT ¶
func (this *GetTableViewRequest) EqualVT(that *GetTableViewRequest) bool
func (*GetTableViewRequest) MarshalJSON ¶
func (x *GetTableViewRequest) MarshalJSON() ([]byte, error)
MarshalJSON marshals the GetTableViewRequest to JSON.
func (*GetTableViewRequest) MarshalProtoJSON ¶
func (x *GetTableViewRequest) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the GetTableViewRequest message to JSON.
func (*GetTableViewRequest) MarshalProtoText ¶
func (x *GetTableViewRequest) MarshalProtoText() string
func (*GetTableViewRequest) MarshalToSizedBufferVT ¶
func (m *GetTableViewRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetTableViewRequest) MarshalToVT ¶
func (m *GetTableViewRequest) MarshalToVT(dAtA []byte) (int, error)
func (*GetTableViewRequest) MarshalVT ¶
func (m *GetTableViewRequest) MarshalVT() (dAtA []byte, err error)
func (*GetTableViewRequest) ProtoMessage ¶
func (*GetTableViewRequest) ProtoMessage()
func (*GetTableViewRequest) Reset ¶
func (x *GetTableViewRequest) Reset()
func (*GetTableViewRequest) SizeVT ¶
func (m *GetTableViewRequest) SizeVT() (n int)
func (*GetTableViewRequest) String ¶
func (x *GetTableViewRequest) String() string
func (*GetTableViewRequest) UnmarshalJSON ¶
func (x *GetTableViewRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the GetTableViewRequest from JSON.
func (*GetTableViewRequest) UnmarshalProtoJSON ¶
func (x *GetTableViewRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the GetTableViewRequest message from JSON.
func (*GetTableViewRequest) UnmarshalVT ¶
func (m *GetTableViewRequest) UnmarshalVT(dAtA []byte) error
type GetTableViewResponse ¶
type GetTableViewResponse struct {
// TableView is the persisted table view block.
TableView *TableView `protobuf:"bytes,1,opt,name=table_view,json=tableView,proto3" json:"tableView,omitempty"`
// contains filtered or unexported fields
}
GetTableViewResponse contains table view metadata.
func (*GetTableViewResponse) CloneMessageVT ¶
func (m *GetTableViewResponse) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*GetTableViewResponse) CloneVT ¶
func (m *GetTableViewResponse) CloneVT() *GetTableViewResponse
func (*GetTableViewResponse) EqualMessageVT ¶
func (this *GetTableViewResponse) EqualMessageVT(thatMsg any) bool
func (*GetTableViewResponse) EqualVT ¶
func (this *GetTableViewResponse) EqualVT(that *GetTableViewResponse) bool
func (*GetTableViewResponse) GetTableView ¶
func (x *GetTableViewResponse) GetTableView() *TableView
func (*GetTableViewResponse) MarshalJSON ¶
func (x *GetTableViewResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals the GetTableViewResponse to JSON.
func (*GetTableViewResponse) MarshalProtoJSON ¶
func (x *GetTableViewResponse) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the GetTableViewResponse message to JSON.
func (*GetTableViewResponse) MarshalProtoText ¶
func (x *GetTableViewResponse) MarshalProtoText() string
func (*GetTableViewResponse) MarshalToSizedBufferVT ¶
func (m *GetTableViewResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetTableViewResponse) MarshalToVT ¶
func (m *GetTableViewResponse) MarshalToVT(dAtA []byte) (int, error)
func (*GetTableViewResponse) MarshalVT ¶
func (m *GetTableViewResponse) MarshalVT() (dAtA []byte, err error)
func (*GetTableViewResponse) ProtoMessage ¶
func (*GetTableViewResponse) ProtoMessage()
func (*GetTableViewResponse) Reset ¶
func (x *GetTableViewResponse) Reset()
func (*GetTableViewResponse) SizeVT ¶
func (m *GetTableViewResponse) SizeVT() (n int)
func (*GetTableViewResponse) String ¶
func (x *GetTableViewResponse) String() string
func (*GetTableViewResponse) UnmarshalJSON ¶
func (x *GetTableViewResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the GetTableViewResponse from JSON.
func (*GetTableViewResponse) UnmarshalProtoJSON ¶
func (x *GetTableViewResponse) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the GetTableViewResponse message from JSON.
func (*GetTableViewResponse) UnmarshalVT ¶
func (m *GetTableViewResponse) UnmarshalVT(dAtA []byte) error
type SRPCSqlTableViewResourceServiceClient ¶
type SRPCSqlTableViewResourceServiceClient interface {
// SRPCClient returns the underlying SRPC client.
SRPCClient() srpc.Client
// GetTableView returns the table view metadata.
GetTableView(ctx context.Context, in *GetTableViewRequest) (*GetTableViewResponse, error)
// FetchRows executes the table view SELECT.
FetchRows(ctx context.Context, in *FetchRowsRequest) (*FetchRowsResponse, error)
}
func NewSRPCSqlTableViewResourceServiceClient ¶
func NewSRPCSqlTableViewResourceServiceClient(cc srpc.Client) SRPCSqlTableViewResourceServiceClient
func NewSRPCSqlTableViewResourceServiceClientWithServiceID ¶
func NewSRPCSqlTableViewResourceServiceClientWithServiceID(cc srpc.Client, serviceID string) SRPCSqlTableViewResourceServiceClient
type SRPCSqlTableViewResourceServiceHandler ¶
type SRPCSqlTableViewResourceServiceHandler struct {
// contains filtered or unexported fields
}
func (SRPCSqlTableViewResourceServiceHandler) GetMethodIDs ¶
func (SRPCSqlTableViewResourceServiceHandler) GetMethodIDs() []string
func (*SRPCSqlTableViewResourceServiceHandler) GetServiceID ¶
func (d *SRPCSqlTableViewResourceServiceHandler) GetServiceID() string
func (*SRPCSqlTableViewResourceServiceHandler) InvokeMethod ¶
func (SRPCSqlTableViewResourceServiceHandler) InvokeMethod_FetchRows ¶
func (SRPCSqlTableViewResourceServiceHandler) InvokeMethod_FetchRows(impl SRPCSqlTableViewResourceServiceServer, strm srpc.Stream) error
func (SRPCSqlTableViewResourceServiceHandler) InvokeMethod_GetTableView ¶
func (SRPCSqlTableViewResourceServiceHandler) InvokeMethod_GetTableView(impl SRPCSqlTableViewResourceServiceServer, strm srpc.Stream) error
type SRPCSqlTableViewResourceServiceServer ¶
type SRPCSqlTableViewResourceServiceServer interface {
// GetTableView returns the table view metadata.
GetTableView(context.Context, *GetTableViewRequest) (*GetTableViewResponse, error)
// FetchRows executes the table view SELECT.
FetchRows(context.Context, *FetchRowsRequest) (*FetchRowsResponse, error)
}
type SortOrder ¶
type SortOrder struct {
// ColumnName is the column to sort.
ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"columnName,omitempty"`
// Descending sorts the column descending when true.
Descending bool `protobuf:"varint,2,opt,name=descending,proto3" json:"descending,omitempty"`
// contains filtered or unexported fields
}
SortOrder describes one ORDER BY term.
func (*SortOrder) CloneMessageVT ¶
func (m *SortOrder) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*SortOrder) EqualMessageVT ¶
func (*SortOrder) GetColumnName ¶
func (*SortOrder) GetDescending ¶
func (*SortOrder) MarshalJSON ¶
MarshalJSON marshals the SortOrder to JSON.
func (*SortOrder) MarshalProtoJSON ¶
func (x *SortOrder) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the SortOrder message to JSON.
func (*SortOrder) MarshalProtoText ¶
func (*SortOrder) MarshalToSizedBufferVT ¶
func (*SortOrder) ProtoMessage ¶
func (*SortOrder) ProtoMessage()
func (*SortOrder) UnmarshalJSON ¶
UnmarshalJSON unmarshals the SortOrder from JSON.
func (*SortOrder) UnmarshalProtoJSON ¶
func (x *SortOrder) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the SortOrder message from JSON.
func (*SortOrder) UnmarshalVT ¶
type TableView ¶
type TableView struct {
// TargetSchemaObjectKey is the sql/schema object this view reads from.
TargetSchemaObjectKey string `protobuf:"bytes,1,opt,name=target_schema_object_key,json=targetSchemaObjectKey,proto3" json:"targetSchemaObjectKey,omitempty"`
// TargetTableName is the table name inside the target schema.
TargetTableName string `protobuf:"bytes,2,opt,name=target_table_name,json=targetTableName,proto3" json:"targetTableName,omitempty"`
// WhereExpression is an optional SQL WHERE expression.
WhereExpression string `protobuf:"bytes,3,opt,name=where_expression,json=whereExpression,proto3" json:"whereExpression,omitempty"`
// ProjectedColumns limits returned columns. Empty selects all columns.
ProjectedColumns []string `protobuf:"bytes,4,rep,name=projected_columns,json=projectedColumns,proto3" json:"projectedColumns,omitempty"`
// SortOrder orders returned rows.
SortOrder []*SortOrder `protobuf:"bytes,5,rep,name=sort_order,json=sortOrder,proto3" json:"sortOrder,omitempty"`
// RowLimit limits returned rows. Zero uses the default limit.
RowLimit uint32 `protobuf:"varint,6,opt,name=row_limit,json=rowLimit,proto3" json:"rowLimit,omitempty"`
// WhereParameters are positional bind arguments used by WhereExpression.
WhereParameters []*sql.SqlValue `protobuf:"bytes,7,rep,name=where_parameters,json=whereParameters,proto3" json:"whereParameters,omitempty"`
// DisplayName is an optional user-facing label.
DisplayName string `protobuf:"bytes,8,opt,name=display_name,json=displayName,proto3" json:"displayName,omitempty"`
// Description is optional user-facing metadata.
Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}
TableView is a standalone saved table projection and filter.
func ReadTableViewObjectRoot ¶
ReadTableViewObjectRoot reads a SQL table view root from an object state.
func ReadTableViewRoot ¶
func ReadTableViewRoot(ctx context.Context, ws world.WorldState, objectKey string) (*TableView, error)
ReadTableViewRoot reads a SQL table view object's root.
func (*TableView) CloneMessageVT ¶
func (m *TableView) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*TableView) EqualMessageVT ¶
func (*TableView) GetDescription ¶
func (*TableView) GetDisplayName ¶
func (*TableView) GetProjectedColumns ¶
func (*TableView) GetRowLimit ¶
func (*TableView) GetSortOrder ¶
func (*TableView) GetTargetSchemaObjectKey ¶
func (*TableView) GetTargetTableName ¶
func (*TableView) GetWhereExpression ¶
func (*TableView) GetWhereParameters ¶
func (*TableView) MarshalBlock ¶
MarshalBlock marshals the SQL table view root.
func (*TableView) MarshalJSON ¶
MarshalJSON marshals the TableView to JSON.
func (*TableView) MarshalProtoJSON ¶
func (x *TableView) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the TableView message to JSON.
func (*TableView) MarshalProtoText ¶
func (*TableView) MarshalToSizedBufferVT ¶
func (*TableView) ProtoMessage ¶
func (*TableView) ProtoMessage()
func (*TableView) UnmarshalBlock ¶
UnmarshalBlock unmarshals the SQL table view root.
func (*TableView) UnmarshalJSON ¶
UnmarshalJSON unmarshals the TableView from JSON.
func (*TableView) UnmarshalProtoJSON ¶
func (x *TableView) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the TableView message from JSON.