Documentation ¶
Index ¶
- type CQLClient
- func (client *CQLClient) Close()
- func (client *CQLClient) CreateDatabase(name string) error
- func (client *CQLClient) CreateSchemaVersionTables() error
- func (client *CQLClient) DropAllTables() error
- func (client *CQLClient) DropDatabase(name string) error
- func (client *CQLClient) Exec(stmt string, args ...interface{}) error
- func (client *CQLClient) ListTables() ([]string, error)
- func (client *CQLClient) ReadSchemaVersion() (string, error)
- func (client *CQLClient) UpdateSchemaVersion(newVersion string, minCompatibleVersion string) error
- func (client *CQLClient) WriteSchemaUpdateLog(oldVersion string, newVersion string, manifestMD5 string, desc string) error
- type CQLClientConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CQLClient ¶
type CQLClient struct {
// contains filtered or unexported fields
}
func NewCQLClient ¶
func NewCQLClient(cfg *CQLClientConfig, logger log.Logger) (*CQLClient, error)
NewCQLClient returns a new instance of CQLClient
func (*CQLClient) CreateDatabase ¶
func (*CQLClient) CreateSchemaVersionTables ¶
CreateSchemaVersionTables sets up the schema version tables
func (*CQLClient) DropAllTables ¶
func (*CQLClient) DropDatabase ¶
func (*CQLClient) ListTables ¶
ListTables lists the table names in a Keyspace
func (*CQLClient) ReadSchemaVersion ¶
ReadSchemaVersion returns the current schema version for the Keyspace
func (*CQLClient) UpdateSchemaVersion ¶
UpdateShemaVersion updates the schema version for the Keyspace
type CQLClientConfig ¶
type CQLClientConfig struct { Hosts string Port int User string Password string Keyspace string Timeout int Datacenter string Consistency string TLS *auth.TLS DisableInitialHostLookup bool // contains filtered or unexported fields }
CQLClientConfig contains the configuration for cql client
Click to show internal directories.
Click to hide internal directories.