Documentation
¶
Index ¶
- Constants
- Variables
- func LookupSqlTableViewSetRootOp(_ context.Context, opTypeID string) (world.Operation, error)
- func SqlTableViewFactory(ctx context.Context, _ *logrus.Entry, _ bus.Bus, _ world.Engine, ...) (srpc.Invoker, func(), error)
- type SqlTableViewResource
- func (r *SqlTableViewResource) Close()
- func (r *SqlTableViewResource) FetchRows(ctx context.Context, _ *s4wave_sql_table_view.FetchRowsRequest) (*s4wave_sql_table_view.FetchRowsResponse, error)
- func (r *SqlTableViewResource) GetMux() srpc.Mux
- func (r *SqlTableViewResource) GetTableView(ctx context.Context, _ *s4wave_sql_table_view.GetTableViewRequest) (*s4wave_sql_table_view.GetTableViewResponse, error)
- type SqlTableViewSetRootOp
- func (o *SqlTableViewSetRootOp) ApplyWorldObjectOp(ctx context.Context, _ *logrus.Entry, os world.ObjectState, _ peer.ID) (bool, error)
- func (o *SqlTableViewSetRootOp) ApplyWorldOp(ctx context.Context, le *logrus.Entry, ws world.WorldState, sender peer.ID) (bool, error)
- func (m *SqlTableViewSetRootOp) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *SqlTableViewSetRootOp) CloneVT() *SqlTableViewSetRootOp
- func (this *SqlTableViewSetRootOp) EqualMessageVT(thatMsg any) bool
- func (this *SqlTableViewSetRootOp) EqualVT(that *SqlTableViewSetRootOp) bool
- func (x *SqlTableViewSetRootOp) GetObjectKey() string
- func (o *SqlTableViewSetRootOp) GetOperationTypeId() string
- func (x *SqlTableViewSetRootOp) GetRootRef() *bucket.ObjectRef
- func (o *SqlTableViewSetRootOp) MarshalBlock() ([]byte, error)
- func (x *SqlTableViewSetRootOp) MarshalJSON() ([]byte, error)
- func (x *SqlTableViewSetRootOp) MarshalProtoJSON(s *json.MarshalState)
- func (x *SqlTableViewSetRootOp) MarshalProtoText() string
- func (m *SqlTableViewSetRootOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SqlTableViewSetRootOp) MarshalToVT(dAtA []byte) (int, error)
- func (m *SqlTableViewSetRootOp) MarshalVT() (dAtA []byte, err error)
- func (*SqlTableViewSetRootOp) ProtoMessage()
- func (x *SqlTableViewSetRootOp) Reset()
- func (m *SqlTableViewSetRootOp) SizeVT() (n int)
- func (x *SqlTableViewSetRootOp) String() string
- func (o *SqlTableViewSetRootOp) UnmarshalBlock(data []byte) error
- func (x *SqlTableViewSetRootOp) UnmarshalJSON(b []byte) error
- func (x *SqlTableViewSetRootOp) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *SqlTableViewSetRootOp) UnmarshalVT(dAtA []byte) error
- func (o *SqlTableViewSetRootOp) Validate() error
Constants ¶
const SqlTableViewSetRootOpId = "sql/table-view/set-root"
SqlTableViewSetRootOpId is the world op id for advancing a sql/table-view root.
Variables ¶
var SqlTableViewType = objecttype.NewObjectType( s4wave_sql_table_view.SqlTableViewTypeID, SqlTableViewFactory, )
SqlTableViewType registers the SQL table view world ObjectType.
Functions ¶
func LookupSqlTableViewSetRootOp ¶
LookupSqlTableViewSetRootOp returns an empty SQL table view set-root op for lookup.
Types ¶
type SqlTableViewResource ¶
type SqlTableViewResource struct {
// contains filtered or unexported fields
}
SqlTableViewResource serves SqlTableViewResourceService for one SQL table view object.
func NewSqlTableViewResource ¶
func NewSqlTableViewResource( ws world.WorldState, objectKey string, ) *SqlTableViewResource
NewSqlTableViewResource constructs a SQL table view resource.
func (*SqlTableViewResource) Close ¶
func (r *SqlTableViewResource) Close()
Close releases the resource lifecycle.
func (*SqlTableViewResource) FetchRows ¶
func (r *SqlTableViewResource) FetchRows( ctx context.Context, _ *s4wave_sql_table_view.FetchRowsRequest, ) (*s4wave_sql_table_view.FetchRowsResponse, error)
FetchRows executes the table view SELECT.
func (*SqlTableViewResource) GetMux ¶
func (r *SqlTableViewResource) GetMux() srpc.Mux
GetMux returns the SRPC mux for this resource.
func (*SqlTableViewResource) GetTableView ¶
func (r *SqlTableViewResource) GetTableView( ctx context.Context, _ *s4wave_sql_table_view.GetTableViewRequest, ) (*s4wave_sql_table_view.GetTableViewResponse, error)
GetTableView returns the table view metadata.
type SqlTableViewSetRootOp ¶
type SqlTableViewSetRootOp struct {
// ObjectKey is the sql/table-view object key to update.
ObjectKey string `protobuf:"bytes,1,opt,name=object_key,json=objectKey,proto3" json:"objectKey,omitempty"`
// RootRef is the committed table view root reference.
RootRef *bucket.ObjectRef `protobuf:"bytes,2,opt,name=root_ref,json=rootRef,proto3" json:"rootRef,omitempty"`
// contains filtered or unexported fields
}
SqlTableViewSetRootOp advances a sql/table-view world object's root.
func NewSqlTableViewSetRootOp ¶
func NewSqlTableViewSetRootOp(objectKey string, rootRef *bucket.ObjectRef) *SqlTableViewSetRootOp
NewSqlTableViewSetRootOp constructs a SQL table view set-root operation.
func (*SqlTableViewSetRootOp) ApplyWorldObjectOp ¶
func (o *SqlTableViewSetRootOp) ApplyWorldObjectOp( ctx context.Context, _ *logrus.Entry, os world.ObjectState, _ peer.ID, ) (bool, error)
ApplyWorldObjectOp applies the SQL table view set-root operation to an object.
func (*SqlTableViewSetRootOp) ApplyWorldOp ¶
func (o *SqlTableViewSetRootOp) ApplyWorldOp( ctx context.Context, le *logrus.Entry, ws world.WorldState, sender peer.ID, ) (bool, error)
ApplyWorldOp applies the SQL table view set-root operation to a world.
func (*SqlTableViewSetRootOp) CloneMessageVT ¶
func (m *SqlTableViewSetRootOp) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*SqlTableViewSetRootOp) CloneVT ¶
func (m *SqlTableViewSetRootOp) CloneVT() *SqlTableViewSetRootOp
func (*SqlTableViewSetRootOp) EqualMessageVT ¶
func (this *SqlTableViewSetRootOp) EqualMessageVT(thatMsg any) bool
func (*SqlTableViewSetRootOp) EqualVT ¶
func (this *SqlTableViewSetRootOp) EqualVT(that *SqlTableViewSetRootOp) bool
func (*SqlTableViewSetRootOp) GetObjectKey ¶
func (x *SqlTableViewSetRootOp) GetObjectKey() string
func (*SqlTableViewSetRootOp) GetOperationTypeId ¶
func (o *SqlTableViewSetRootOp) GetOperationTypeId() string
GetOperationTypeId returns the operation type identifier.
func (*SqlTableViewSetRootOp) GetRootRef ¶
func (x *SqlTableViewSetRootOp) GetRootRef() *bucket.ObjectRef
func (*SqlTableViewSetRootOp) MarshalBlock ¶
func (o *SqlTableViewSetRootOp) MarshalBlock() ([]byte, error)
MarshalBlock marshals the SQL table view set-root operation.
func (*SqlTableViewSetRootOp) MarshalJSON ¶
func (x *SqlTableViewSetRootOp) MarshalJSON() ([]byte, error)
MarshalJSON marshals the SqlTableViewSetRootOp to JSON.
func (*SqlTableViewSetRootOp) MarshalProtoJSON ¶
func (x *SqlTableViewSetRootOp) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the SqlTableViewSetRootOp message to JSON.
func (*SqlTableViewSetRootOp) MarshalProtoText ¶
func (x *SqlTableViewSetRootOp) MarshalProtoText() string
func (*SqlTableViewSetRootOp) MarshalToSizedBufferVT ¶
func (m *SqlTableViewSetRootOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SqlTableViewSetRootOp) MarshalToVT ¶
func (m *SqlTableViewSetRootOp) MarshalToVT(dAtA []byte) (int, error)
func (*SqlTableViewSetRootOp) MarshalVT ¶
func (m *SqlTableViewSetRootOp) MarshalVT() (dAtA []byte, err error)
func (*SqlTableViewSetRootOp) ProtoMessage ¶
func (*SqlTableViewSetRootOp) ProtoMessage()
func (*SqlTableViewSetRootOp) Reset ¶
func (x *SqlTableViewSetRootOp) Reset()
func (*SqlTableViewSetRootOp) SizeVT ¶
func (m *SqlTableViewSetRootOp) SizeVT() (n int)
func (*SqlTableViewSetRootOp) String ¶
func (x *SqlTableViewSetRootOp) String() string
func (*SqlTableViewSetRootOp) UnmarshalBlock ¶
func (o *SqlTableViewSetRootOp) UnmarshalBlock(data []byte) error
UnmarshalBlock unmarshals the SQL table view set-root operation.
func (*SqlTableViewSetRootOp) UnmarshalJSON ¶
func (x *SqlTableViewSetRootOp) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the SqlTableViewSetRootOp from JSON.
func (*SqlTableViewSetRootOp) UnmarshalProtoJSON ¶
func (x *SqlTableViewSetRootOp) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the SqlTableViewSetRootOp message from JSON.
func (*SqlTableViewSetRootOp) UnmarshalVT ¶
func (m *SqlTableViewSetRootOp) UnmarshalVT(dAtA []byte) error
func (*SqlTableViewSetRootOp) Validate ¶
func (o *SqlTableViewSetRootOp) Validate() error
Validate performs cursory checks on the operation.