Documentation ¶
Overview ¶
Package keyspaces is for working with AWS Keyspaces (for Apache Cassandra).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Keyspaces ¶
type Keyspaces struct {
// contains filtered or unexported fields
}
func New ¶
New returns a Keyspaces struct which wraps a Keyspaces session. host to connect to eg: cassandra.ap-southeast-2.amazonaws.com:9142 certPath is the path of the required Starfield digital certificate to connect to Keyspaces using SSL/TLS (found here: https://certs.secureserver.net/repository/sf-class2-root.crt)
func (*Keyspaces) ExecuteQuery ¶
ExecuteQuery executes the provided query on the database.
func (*Keyspaces) QueryDatabase ¶
QueryDatabase queries the database with provided query, and returns a Scanner to iterate through the results.
func (*Keyspaces) RefreshSessionEvery ¶
RefreshSessionEvery starts up a loop that replaces the client's session with a new one regularly. This can be only set once.