s4wave_sql_workbench_world

package
v0.52.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const SqlWorkbenchSetRootOpId = "sql/workbench/set-root"

SqlWorkbenchSetRootOpId is the world op id for advancing a sql/workbench root.

Variables

SqlWorkbenchType registers the SQL workbench world ObjectType.

Functions

func LookupSqlWorkbenchSetRootOp

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

LookupSqlWorkbenchSetRootOp returns an empty SQL workbench set-root op for lookup.

func SqlWorkbenchFactory

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

SqlWorkbenchFactory opens a SQL workbench object over SRPC.

Types

type SqlWorkbenchResource

type SqlWorkbenchResource struct {
	// contains filtered or unexported fields
}

SqlWorkbenchResource serves SqlWorkbenchResourceService for one SQL workbench object.

func NewSqlWorkbenchResource

func NewSqlWorkbenchResource(
	ws world.WorldState,
	objectKey string,
) *SqlWorkbenchResource

NewSqlWorkbenchResource constructs a SQL workbench resource.

func (*SqlWorkbenchResource) AddPin

AddPin pins a sql/query object.

func (*SqlWorkbenchResource) Close

func (r *SqlWorkbenchResource) Close()

Close releases the resource lifecycle.

func (*SqlWorkbenchResource) GetMux

func (r *SqlWorkbenchResource) GetMux() srpc.Mux

GetMux returns the SRPC mux for this resource.

func (*SqlWorkbenchResource) GetWorkbench

GetWorkbench returns the persisted workbench state.

func (*SqlWorkbenchResource) RemovePin

RemovePin removes a pinned sql/query object.

func (*SqlWorkbenchResource) SetLayout

SetLayout replaces the open tabs and layout preferences.

type SqlWorkbenchSetRootOp

type SqlWorkbenchSetRootOp struct {

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

SqlWorkbenchSetRootOp advances a sql/workbench world object's root.

func NewSqlWorkbenchSetRootOp

func NewSqlWorkbenchSetRootOp(objectKey string, rootRef *bucket.ObjectRef) *SqlWorkbenchSetRootOp

NewSqlWorkbenchSetRootOp constructs a SQL workbench set-root operation.

func (*SqlWorkbenchSetRootOp) ApplyWorldObjectOp

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

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

func (*SqlWorkbenchSetRootOp) ApplyWorldOp

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

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

func (*SqlWorkbenchSetRootOp) CloneMessageVT

func (*SqlWorkbenchSetRootOp) CloneVT

func (*SqlWorkbenchSetRootOp) EqualMessageVT

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

func (*SqlWorkbenchSetRootOp) EqualVT

func (this *SqlWorkbenchSetRootOp) EqualVT(that *SqlWorkbenchSetRootOp) bool

func (*SqlWorkbenchSetRootOp) GetObjectKey

func (x *SqlWorkbenchSetRootOp) GetObjectKey() string

func (*SqlWorkbenchSetRootOp) GetOperationTypeId

func (o *SqlWorkbenchSetRootOp) GetOperationTypeId() string

GetOperationTypeId returns the operation type identifier.

func (*SqlWorkbenchSetRootOp) GetRootRef

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

func (*SqlWorkbenchSetRootOp) MarshalBlock

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

MarshalBlock marshals the SQL workbench set-root operation.

func (*SqlWorkbenchSetRootOp) MarshalJSON

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

MarshalJSON marshals the SqlWorkbenchSetRootOp to JSON.

func (*SqlWorkbenchSetRootOp) MarshalProtoJSON

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

MarshalProtoJSON marshals the SqlWorkbenchSetRootOp message to JSON.

func (*SqlWorkbenchSetRootOp) MarshalProtoText

func (x *SqlWorkbenchSetRootOp) MarshalProtoText() string

func (*SqlWorkbenchSetRootOp) MarshalToSizedBufferVT

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

func (*SqlWorkbenchSetRootOp) MarshalToVT

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

func (*SqlWorkbenchSetRootOp) MarshalVT

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

func (*SqlWorkbenchSetRootOp) ProtoMessage

func (*SqlWorkbenchSetRootOp) ProtoMessage()

func (*SqlWorkbenchSetRootOp) Reset

func (x *SqlWorkbenchSetRootOp) Reset()

func (*SqlWorkbenchSetRootOp) SizeVT

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

func (*SqlWorkbenchSetRootOp) String

func (x *SqlWorkbenchSetRootOp) String() string

func (*SqlWorkbenchSetRootOp) UnmarshalBlock

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

UnmarshalBlock unmarshals the SQL workbench set-root operation.

func (*SqlWorkbenchSetRootOp) UnmarshalJSON

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

UnmarshalJSON unmarshals the SqlWorkbenchSetRootOp from JSON.

func (*SqlWorkbenchSetRootOp) UnmarshalProtoJSON

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

UnmarshalProtoJSON unmarshals the SqlWorkbenchSetRootOp message from JSON.

func (*SqlWorkbenchSetRootOp) UnmarshalVT

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

func (*SqlWorkbenchSetRootOp) Validate

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