Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCassandraCluster ¶ added in v0.5.0
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, ) 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 TLS *auth.TLS // 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.