Documentation ¶
Index ¶
- type ActivityInfoMapsFilter
- type ActivityInfoMapsRow
- type AdminDB
- type BufferedEventsFilter
- type BufferedEventsRow
- type ChildExecutionInfoMapsFilter
- type ChildExecutionInfoMapsRow
- type ClusterMembershipFilter
- type ClusterMembershipRow
- type ClusterMetadataRow
- type Conn
- type CurrentExecutionsFilter
- type CurrentExecutionsRow
- type DB
- type EventsFilter
- type EventsRow
- type ExecutionsFilter
- type ExecutionsRow
- type HistoryNodeFilter
- type HistoryNodeRow
- type HistoryTreeFilter
- type HistoryTreeRow
- type NamespaceFilter
- type NamespaceMetadataRow
- type NamespaceRow
- type Plugin
- type PruneClusterMembershipFilter
- type QueueMetadataRow
- type QueueRow
- type ReplicationTaskDLQRow
- type ReplicationTasksDLQFilter
- type ReplicationTasksFilter
- type ReplicationTasksRow
- type RequestCancelInfoMapsFilter
- type RequestCancelInfoMapsRow
- type ShardsFilter
- type ShardsRow
- type SignalInfoMapsFilter
- type SignalInfoMapsRow
- type SignalsRequestedSetsFilter
- type SignalsRequestedSetsRow
- type TaskQueuesFilter
- type TaskQueuesRow
- type TasksFilter
- type TasksRow
- type TimerInfoMapsFilter
- type TimerInfoMapsRow
- type TimerTasksFilter
- type TimerTasksRow
- type TransferTasksFilter
- type TransferTasksRow
- type Tx
- type VisibilityFilter
- type VisibilityRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityInfoMapsFilter ¶
type ActivityInfoMapsFilter struct { ShardID int64 NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID ScheduleID *int64 }
ActivityInfoMapsFilter contains the column names within activity_info_maps table that can be used to filter results through a WHERE clause
type ActivityInfoMapsRow ¶
type ActivityInfoMapsRow struct { ShardID int64 NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID ScheduleID int64 Data []byte DataEncoding string }
ActivityInfoMapsRow represents a row in activity_info_maps table
type AdminDB ¶
type AdminDB interface { PluginName() string Close() error // contains filtered or unexported methods }
AdminDB defines the API for admin SQL operations for CLI and testing suites
type BufferedEventsFilter ¶
type BufferedEventsFilter struct { ShardID int NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID }
BufferedEventsFilter contains the column names within buffered_events table that can be used to filter results through a WHERE clause
type BufferedEventsRow ¶
type BufferedEventsRow struct { ShardID int NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID Data []byte DataEncoding string }
BufferedEventsRow represents a row in buffered_events table
type ChildExecutionInfoMapsFilter ¶
type ChildExecutionInfoMapsFilter struct { ShardID int64 NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID InitiatedID *int64 }
ChildExecutionInfoMapsFilter contains the column names within child_execution_info_maps table that can be used to filter results through a WHERE clause
type ChildExecutionInfoMapsRow ¶
type ChildExecutionInfoMapsRow struct { ShardID int64 NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID InitiatedID int64 Data []byte DataEncoding string }
ChildExecutionInfoMapsRow represents a row in child_execution_info_maps table
type ClusterMembershipFilter ¶
type ClusterMembershipFilter struct { RPCAddressEquals string HostIDEquals []byte HostIDGreaterThan []byte RoleEquals persistence.ServiceType LastHeartbeatAfter time.Time RecordExpiryAfter time.Time SessionStartedAfter time.Time MaxRecordCount int }
ClusterMembershipFilter is used for GetClusterMembership queries
type ClusterMembershipRow ¶
type ClusterMembershipRow struct { Role persistence.ServiceType HostID []byte RPCAddress string RPCPort uint16 SessionStart time.Time LastHeartbeat time.Time RecordExpiry time.Time InsertionOrder uint64 }
ClusterMembershipRow represents a row in the cluster_membership table
type ClusterMetadataRow ¶
ClusterMetadataRow represents a row in the cluster_metadata table
type Conn ¶
type Conn interface { Exec(query string, args ...interface{}) (sql.Result, error) NamedExec(query string, arg interface{}) (sql.Result, error) Get(dest interface{}, query string, args ...interface{}) error Select(dest interface{}, query string, args ...interface{}) error }
Conn defines the API for a single database connection
type CurrentExecutionsFilter ¶
type CurrentExecutionsFilter struct { ShardID int64 NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID }
CurrentExecutionsFilter contains the column names within current_executions table that can be used to filter results through a WHERE clause
type CurrentExecutionsRow ¶
type CurrentExecutionsRow struct { ShardID int64 NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID CreateRequestID string State enumsspb.WorkflowExecutionState Status enumspb.WorkflowExecutionStatus LastWriteVersion int64 StartVersion int64 }
CurrentExecutionsRow represents a row in current_executions table
type DB ¶
type DB interface { BeginTx() (Tx, error) PluginName() string IsDupEntryError(err error) bool Close() error // contains filtered or unexported methods }
DB defines the API for regular SQL operations of a Temporal server
type EventsFilter ¶
type EventsFilter struct { NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID FirstEventID *int64 NextEventID *int64 PageSize *int }
EventsFilter contains the column names within events table that can be used to filter results through a WHERE clause
type EventsRow ¶
type EventsRow struct { NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID FirstEventID int64 BatchVersion int64 RangeID int64 TxID int64 Data []byte DataEncoding string }
EventsRow represents a row in events table
type ExecutionsFilter ¶
type ExecutionsFilter struct { ShardID int NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID }
ExecutionsFilter contains the column names within executions table that can be used to filter results through a WHERE clause
type ExecutionsRow ¶
type ExecutionsRow struct { ShardID int NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID NextEventID int64 LastWriteVersion int64 Data []byte DataEncoding string State []byte StateEncoding string VersionHistories []byte VersionHistoriesEncoding string }
ExecutionsRow represents a row in executions table
type HistoryNodeFilter ¶
type HistoryNodeFilter struct { ShardID int TreeID primitives.UUID BranchID primitives.UUID // Inclusive MinNodeID *int64 // Exclusive MaxNodeID *int64 PageSize *int }
HistoryNodeFilter contains the column names within history_node table that can be used to filter results through a WHERE clause
type HistoryNodeRow ¶
type HistoryNodeRow struct { ShardID int TreeID primitives.UUID BranchID primitives.UUID NodeID int64 // use pointer so that it's easier to multiple by -1 TxnID *int64 Data []byte DataEncoding string }
HistoryNodeRow represents a row in history_node table
type HistoryTreeFilter ¶
type HistoryTreeFilter struct { ShardID int TreeID primitives.UUID BranchID primitives.UUID }
HistoryTreeFilter contains the column names within history_tree table that can be used to filter results through a WHERE clause
type HistoryTreeRow ¶
type HistoryTreeRow struct { ShardID int TreeID primitives.UUID BranchID primitives.UUID Data []byte DataEncoding string }
HistoryTreeRow represents a row in history_tree table
type NamespaceFilter ¶
type NamespaceFilter struct { ID *primitives.UUID Name *string GreaterThanID *primitives.UUID PageSize *int }
NamespaceFilter contains the column names within namespace table that can be used to filter results through a WHERE clause. When ID is not nil, it will be used for WHERE condition. If ID is nil and Name is non-nil, Name will be used for WHERE condition. When both ID and Name are nil, no WHERE clause will be used
type NamespaceMetadataRow ¶
type NamespaceMetadataRow struct {
NotificationVersion int64
}
NamespaceMetadataRow represents a row in namespace_metadata table
type NamespaceRow ¶
type NamespaceRow struct { ID primitives.UUID Name string Data []byte DataEncoding string IsGlobal bool NotificationVersion int64 }
NamespaceRow represents a row in namespace table
type Plugin ¶
type Plugin interface { CreateDB(cfg *config.SQL) (DB, error) CreateAdminDB(cfg *config.SQL) (AdminDB, error) }
Plugin defines the interface for any SQL database that needs to implement
type PruneClusterMembershipFilter ¶
PruneClusterMembershipFilter is used for PruneClusterMembership queries
type QueueMetadataRow ¶
type QueueMetadataRow struct { QueueType persistence.QueueType Data []byte }
QueueMetadataRow represents a row in queue_metadata table
type QueueRow ¶
type QueueRow struct { QueueType persistence.QueueType MessageID int64 MessagePayload []byte }
QueueRow represents a row in queue table
type ReplicationTaskDLQRow ¶
type ReplicationTaskDLQRow struct { SourceClusterName string ShardID int TaskID int64 Data []byte DataEncoding string }
ReplicationTaskDLQRow represents a row in replication_tasks_dlq table
type ReplicationTasksDLQFilter ¶
type ReplicationTasksDLQFilter struct { ReplicationTasksFilter SourceClusterName string }
ReplicationTasksDLQFilter contains the column names within replication_tasks_dlq table that can be used to filter results through a WHERE clause
type ReplicationTasksFilter ¶
type ReplicationTasksFilter struct { ShardID int TaskID int64 InclusiveEndTaskID int64 MinTaskID int64 MaxTaskID int64 PageSize int }
ReplicationTasksFilter contains the column names within replication_tasks table that can be used to filter results through a WHERE clause
type ReplicationTasksRow ¶
ReplicationTasksRow represents a row in replication_tasks table
type RequestCancelInfoMapsFilter ¶
type RequestCancelInfoMapsFilter struct { ShardID int64 NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID InitiatedID *int64 }
RequestCancelInfoMapsFilter contains the column names within request_cancel_info_maps table that can be used to filter results through a WHERE clause
type RequestCancelInfoMapsRow ¶
type RequestCancelInfoMapsRow struct { ShardID int64 NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID InitiatedID int64 Data []byte DataEncoding string }
RequestCancelInfoMapsRow represents a row in request_cancel_info_maps table
type ShardsFilter ¶
type ShardsFilter struct {
ShardID int64
}
ShardsFilter contains the column names within shards table that can be used to filter results through a WHERE clause
type SignalInfoMapsFilter ¶
type SignalInfoMapsFilter struct { ShardID int64 NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID InitiatedID *int64 }
SignalInfoMapsFilter contains the column names within signal_info_maps table that can be used to filter results through a WHERE clause
type SignalInfoMapsRow ¶
type SignalInfoMapsRow struct { ShardID int64 NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID InitiatedID int64 Data []byte DataEncoding string }
SignalInfoMapsRow represents a row in signal_info_maps table
type SignalsRequestedSetsFilter ¶
type SignalsRequestedSetsFilter struct { ShardID int64 NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID SignalID *string }
SignalsRequestedSetsFilter contains the column names within signals_requested_sets table that can be used to filter results through a WHERE clause
type SignalsRequestedSetsRow ¶
type SignalsRequestedSetsRow struct { ShardID int64 NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID SignalID string }
SignalsRequestedSetsRow represents a row in signals_requested_sets table
type TaskQueuesFilter ¶
type TaskQueuesFilter struct { RangeHash uint32 RangeHashGreaterThanEqualTo uint32 RangeHashLessThanEqualTo uint32 TaskQueueID []byte TaskQueueIDGreaterThan []byte RangeID *int64 PageSize *int }
TaskQueuesFilter contains the column names within task_queues table that can be used to filter results through a WHERE clause
type TaskQueuesRow ¶
type TaskQueuesRow struct { RangeHash uint32 TaskQueueID []byte RangeID int64 Data []byte DataEncoding string }
TaskQueuesRow represents a row in task_queues table
type TasksFilter ¶
type TasksFilter struct { RangeHash uint32 TaskQueueID []byte TaskID *int64 MinTaskID *int64 MaxTaskID *int64 TaskIDLessThanEquals *int64 Limit *int PageSize *int }
TasksFilter contains the column names within tasks table that can be used to filter results through a WHERE clause
type TasksRow ¶
type TasksRow struct { RangeHash uint32 TaskQueueID []byte TaskID int64 Data []byte DataEncoding string }
TasksRow represents a row in tasks table
type TimerInfoMapsFilter ¶
type TimerInfoMapsFilter struct { ShardID int64 NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID TimerID *string }
TimerInfoMapsFilter contains the column names within timer_info_maps table that can be used to filter results through a WHERE clause
type TimerInfoMapsRow ¶
type TimerInfoMapsRow struct { ShardID int64 NamespaceID primitives.UUID WorkflowID string RunID primitives.UUID TimerID string Data []byte DataEncoding string }
TimerInfoMapsRow represents a row in timer_info_maps table
type TimerTasksFilter ¶
type TimerTasksFilter struct { ShardID int TaskID int64 VisibilityTimestamp *time.Time MinVisibilityTimestamp *time.Time MaxVisibilityTimestamp *time.Time PageSize *int }
TimerTasksFilter contains the column names within timer_tasks table that can be used to filter results through a WHERE clause
type TimerTasksRow ¶
type TimerTasksRow struct { ShardID int VisibilityTimestamp time.Time TaskID int64 Data []byte DataEncoding string }
TimerTasksRow represents a row in timer_tasks table
type TransferTasksFilter ¶
TransferTasksFilter contains the column names within transfer_tasks table that can be used to filter results through a WHERE clause
type TransferTasksRow ¶
TransferTasksRow represents a row in transfer_tasks table
type VisibilityFilter ¶
type VisibilityFilter struct { NamespaceID string RunID *string WorkflowID *string WorkflowTypeName *string Status int32 MinStartTime *time.Time MaxStartTime *time.Time PageSize *int }
VisibilityFilter contains the column names within executions_visibility table that can be used to filter results through a WHERE clause
type VisibilityRow ¶
type VisibilityRow struct { NamespaceID string RunID string WorkflowTypeName string WorkflowID string StartTime time.Time ExecutionTime time.Time Status int32 CloseTime *time.Time HistoryLength *int64 Memo []byte Encoding string }
VisibilityRow represents a row in executions_visibility table