cassandra_gocql

package
v0.0.0-...-cbea63e Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultSessionConstructor func([]string, int, string, bool) (*gocql.Session, error) = newSession
	SessionConstructor        func([]string, int, string, bool) (*gocql.Session, error) = DefaultSessionConstructor
)

Functions

func ReadSession

func ReadSession(ks string) (*gocql.Session, error)

ReadSession yields a configured cql session for the given keyspace with consistency set based upon "readConsistencyLevel" This should be called on each use, as this will mean that you will always get an up-to-date Session (automatically updated if the config changes)

func WriteSession

func WriteSession(ks string) (*gocql.Session, error)

WriteSession yields a configured cql session for the given keyspace with consistency set based upon "writeConsistencyLevel" This should be called on each use, as this will mean that you will always get an up-to-date Session (automatically updated if the config changes)

Types

This section is empty.

Jump to

Keyboard shortcuts

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