sqlite

package
v1.21.5-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 16 Imported by: 5

Documentation

Index

Constants

View Source
const Version = "0.2"

Version is the SQLite database release version

View Source
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

func SetupSchema(cfg *config.SQL) error

SetupSchema initializes the SQLite schema in an empty database.

Note: this function may receive breaking changes or be removed in the future.

func SetupSchemaOnDB added in v1.15.0

func SetupSchemaOnDB(db sqlplugin.AdminDB) error

SetupSchemaOnDB initializes the SQLite schema in an empty database using existing DB connection.

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 *persistencespb.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.

Jump to

Keyboard shortcuts

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