Documentation ¶
Index ¶
- func NewCassandraCluster(hostsCsv string, port int, user, password, keyspace string, timeoutSeconds int) (*gocql.ClusterConfig, error)
- func RunTool(args []string) error
- func SetupSchema(config *SetupSchemaConfig) error
- func VerifyCompatibleVersion(cfg config.Persistence, rootPath string) error
- type CQLClientConfig
- type SetupSchemaConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCassandraCluster ¶ added in v0.5.0
func NewCassandraCluster(hostsCsv string, port int, user, password, keyspace string, timeoutSeconds int) (*gocql.ClusterConfig, error)
NewCassandraCluster return gocql clusterConfig
func SetupSchema ¶
func SetupSchema(config *SetupSchemaConfig) error
SetupSchema setups the cassandra schema
func VerifyCompatibleVersion ¶ added in v0.3.6
func VerifyCompatibleVersion(cfg config.Persistence, rootPath string) error
VerifyCompatibleVersion ensures that the installed version of cadence and visibility keyspaces is greater than or equal to the expected version. In most cases, the versions should match. However if after a schema upgrade there is a code rollback, the code version (expected version) would fall lower than the actual version in cassandra.
Types ¶
type CQLClientConfig ¶ added in v0.5.7
type CQLClientConfig struct { Hosts string Port int User string Password string Keyspace string Timeout int // contains filtered or unexported fields }
CQLClientConfig contains the configuration for cql client
type SetupSchemaConfig ¶
type SetupSchemaConfig struct { CQLClientConfig schema.SetupConfig }
SetupSchemaConfig contains the configuration params needed to setup schema tables
Click to show internal directories.
Click to hide internal directories.