Documentation ¶
Index ¶
Constants ¶
const Version = "0.1"
Version is the SQLite database release version
const VisibilityVersion = "0.1"
VisibilityVersion is the SQLite visibility database release version
Variables ¶
This section is empty.
Functions ¶
func CreateNamespaces ¶
func CreateNamespaces(cfg *config.SQL, namespaces ...*NamespaceConfig) error
CreateNamespaces creates namespaces in the target database without the need to have a running Temporal server.
This exists primarily as a workaround for https://github.com/temporalio/temporal/issues/1336. Namespaces should typically be created through the Temporal API either via `tctl` or an SDK client.
Attempting to create a namespace that already exists will be a no-op.
Note: this function may receive breaking changes or be removed in the future.
func SetupSchema ¶
SetupSchema initializes the SQLite schema in an empty database.
Note: this function may receive breaking changes or be removed in the future.
Types ¶
type NamespaceConfig ¶
type NamespaceConfig struct { // Low level representation of a Namespace used by Temporal persistence drivers. Detail *persistence.NamespaceDetail // Global Namespaces provide support for replication of Workflow execution across clusters. IsGlobal bool }
NamespaceConfig determines how namespaces should be configured during registration.
Note: this struct may receive breaking changes or be removed in the future.
func NewNamespaceConfig ¶
func NewNamespaceConfig(activeClusterName, namespace string, global bool) *NamespaceConfig
NewNamespaceConfig initializes a NamespaceConfig with the field values needed to pre-register the namespace via the CreateNamespaces function.
Note: this function may receive breaking changes or be removed in the future.