scyllainitialize

package
v0.0.0-...-a019193 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package scyllainitialize provides functionality for initializing a connection to ScyllaDB database using to gocql library.

Note: Make sure to handle errors appropriately when using this package.

Index

Constants

View Source
const MigrationDBURL = "cassandra://%s/%s"

Variables

This section is empty.

Functions

func CreateKeySpace

func CreateKeySpace(consistency gocql.Consistency, keyspace string, hosts ...string) error

func RunMigrations

func RunMigrations(dbConn *ScyllaDBConnection, dir string) error

Types

type Manager

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

func New

func New(dir, host, keyspace string) *Manager

func (*Manager) Run

func (m *Manager) Run() error

type ScyllaDBConnection

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

func NewScyllaDBConnection

func NewScyllaDBConnection(consistency gocql.Consistency, keyspace string, hosts ...string) *ScyllaDBConnection

Jump to

Keyboard shortcuts

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