scylla

package
v0.0.0-...-fa223cd Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseConfig

type DatabaseConfig struct {
	Scylla map[string]ScyllaConfig `mapstructure:"scylla"`
}

type ScyllaConfig

type ScyllaConfig struct {
	Host string `mapstructure:"host"`
	Port int    `mapstructure:"port"`
}

type ScyllaDBManager

type ScyllaDBManager struct {
	// contains filtered or unexported fields
}

func NewScyllaDBManager

func NewScyllaDBManager(keyspace string, cnf ScyllaConfig) (*ScyllaDBManager, error)

func (*ScyllaDBManager) Close

func (manager *ScyllaDBManager) Close()

func (*ScyllaDBManager) ExecuteQuery

func (manager *ScyllaDBManager) ExecuteQuery(query string, values ...interface{}) error

func (*ScyllaDBManager) Get

func (manager *ScyllaDBManager) Get(query string, values ...interface{}) *gocql.Iter

func (*ScyllaDBManager) GetOne

func (manager *ScyllaDBManager) GetOne(query string, values ...interface{}) *gocql.Query

Jump to

Keyboard shortcuts

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