s4wave_sql_table_view_world

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const SqlTableViewSetRootOpId = "sql/table-view/set-root"

SqlTableViewSetRootOpId is the world op id for advancing a sql/table-view root.

Variables

SqlTableViewType registers the SQL table view world ObjectType.

Functions

func LookupSqlTableViewSetRootOp

func LookupSqlTableViewSetRootOp(_ context.Context, opTypeID string) (world.Operation, error)

LookupSqlTableViewSetRootOp returns an empty SQL table view set-root op for lookup.

func SqlTableViewFactory

func SqlTableViewFactory(
	ctx context.Context,
	_ *logrus.Entry,
	_ bus.Bus,
	_ world.Engine,
	ws world.WorldState,
	objectKey string,
) (srpc.Invoker, func(), error)

SqlTableViewFactory opens a SQL table view object over SRPC.

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

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

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 (*SqlTableViewSetRootOp) CloneVT

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.

Jump to

Keyboard shortcuts

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