s4wave_sql_query_result_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: 19 Imported by: 0

Documentation

Index

Constants

View Source
const SqlQueryResultSetRootOpId = "sql/query-result/set-root"

SqlQueryResultSetRootOpId is the world op id for advancing a sql/query-result root.

Variables

SqlQueryResultType registers the SQL query result world ObjectType.

Functions

func LookupSqlQueryResultSetRootOp

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

LookupSqlQueryResultSetRootOp returns an empty SQL query result set-root op for lookup.

func SqlQueryResultFactory

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

SqlQueryResultFactory opens a SQL query result object over SRPC.

Types

type SqlQueryResultSetRootOp

type SqlQueryResultSetRootOp struct {

	// ObjectKey is the sql/query-result object key to update.
	ObjectKey string `protobuf:"bytes,1,opt,name=object_key,json=objectKey,proto3" json:"objectKey,omitempty"`
	// RootRef is the committed query result root reference.
	RootRef *bucket.ObjectRef `protobuf:"bytes,2,opt,name=root_ref,json=rootRef,proto3" json:"rootRef,omitempty"`
	// contains filtered or unexported fields
}

SqlQueryResultSetRootOp advances a sql/query-result world object's root.

func NewSqlQueryResultSetRootOp

func NewSqlQueryResultSetRootOp(objectKey string, rootRef *bucket.ObjectRef) *SqlQueryResultSetRootOp

NewSqlQueryResultSetRootOp constructs a SQL query result set-root operation.

func (*SqlQueryResultSetRootOp) ApplyWorldObjectOp

func (o *SqlQueryResultSetRootOp) ApplyWorldObjectOp(
	ctx context.Context,
	_ *logrus.Entry,
	os world.ObjectState,
	_ peer.ID,
) (bool, error)

ApplyWorldObjectOp applies the SQL query result set-root operation to an object.

func (*SqlQueryResultSetRootOp) ApplyWorldOp

func (o *SqlQueryResultSetRootOp) ApplyWorldOp(
	ctx context.Context,
	le *logrus.Entry,
	ws world.WorldState,
	sender peer.ID,
) (bool, error)

ApplyWorldOp applies the SQL query result set-root operation to a world.

func (*SqlQueryResultSetRootOp) CloneMessageVT

func (*SqlQueryResultSetRootOp) CloneVT

func (*SqlQueryResultSetRootOp) EqualMessageVT

func (this *SqlQueryResultSetRootOp) EqualMessageVT(thatMsg any) bool

func (*SqlQueryResultSetRootOp) EqualVT

func (*SqlQueryResultSetRootOp) GetObjectKey

func (x *SqlQueryResultSetRootOp) GetObjectKey() string

func (*SqlQueryResultSetRootOp) GetOperationTypeId

func (o *SqlQueryResultSetRootOp) GetOperationTypeId() string

GetOperationTypeId returns the operation type identifier.

func (*SqlQueryResultSetRootOp) GetRootRef

func (x *SqlQueryResultSetRootOp) GetRootRef() *bucket.ObjectRef

func (*SqlQueryResultSetRootOp) MarshalBlock

func (o *SqlQueryResultSetRootOp) MarshalBlock() ([]byte, error)

MarshalBlock marshals the SQL query result set-root operation.

func (*SqlQueryResultSetRootOp) MarshalJSON

func (x *SqlQueryResultSetRootOp) MarshalJSON() ([]byte, error)

MarshalJSON marshals the SqlQueryResultSetRootOp to JSON.

func (*SqlQueryResultSetRootOp) MarshalProtoJSON

func (x *SqlQueryResultSetRootOp) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the SqlQueryResultSetRootOp message to JSON.

func (*SqlQueryResultSetRootOp) MarshalProtoText

func (x *SqlQueryResultSetRootOp) MarshalProtoText() string

func (*SqlQueryResultSetRootOp) MarshalToSizedBufferVT

func (m *SqlQueryResultSetRootOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SqlQueryResultSetRootOp) MarshalToVT

func (m *SqlQueryResultSetRootOp) MarshalToVT(dAtA []byte) (int, error)

func (*SqlQueryResultSetRootOp) MarshalVT

func (m *SqlQueryResultSetRootOp) MarshalVT() (dAtA []byte, err error)

func (*SqlQueryResultSetRootOp) ProtoMessage

func (*SqlQueryResultSetRootOp) ProtoMessage()

func (*SqlQueryResultSetRootOp) Reset

func (x *SqlQueryResultSetRootOp) Reset()

func (*SqlQueryResultSetRootOp) SizeVT

func (m *SqlQueryResultSetRootOp) SizeVT() (n int)

func (*SqlQueryResultSetRootOp) String

func (x *SqlQueryResultSetRootOp) String() string

func (*SqlQueryResultSetRootOp) UnmarshalBlock

func (o *SqlQueryResultSetRootOp) UnmarshalBlock(data []byte) error

UnmarshalBlock unmarshals the SQL query result set-root operation.

func (*SqlQueryResultSetRootOp) UnmarshalJSON

func (x *SqlQueryResultSetRootOp) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the SqlQueryResultSetRootOp from JSON.

func (*SqlQueryResultSetRootOp) UnmarshalProtoJSON

func (x *SqlQueryResultSetRootOp) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the SqlQueryResultSetRootOp message from JSON.

func (*SqlQueryResultSetRootOp) UnmarshalVT

func (m *SqlQueryResultSetRootOp) UnmarshalVT(dAtA []byte) error

func (*SqlQueryResultSetRootOp) Validate

func (o *SqlQueryResultSetRootOp) 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