scylladb

package
v0.0.0-...-b989806 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package scylladb provides an interface and implementation for a ScyllaDB session wrapper to simplify database interactions using gocql and gocqlx libraries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	S *gocqlx.Session
}

func (*Session) AwaitSchemaAgreement

func (s *Session) AwaitSchemaAgreement(ctx context.Context) error

func (*Session) Close

func (s *Session) Close()

func (*Session) ContextQuery

func (s *Session) ContextQuery(ctx context.Context, stmt string, names []string) gocqlx.Queryx

func (*Session) ExecStmt

func (s *Session) ExecStmt(stmt string) error

func (*Session) Query

func (s *Session) Query(stmt string, names []string) gocqlx.Queryx

type SessionxInterface

type SessionxInterface interface {
	ContextQuery(ctx context.Context, stmt string, names []string) gocqlx.Queryx
	Query(stmt string, names []string) gocqlx.Queryx
	ExecStmt(stmt string) error
	AwaitSchemaAgreement(ctx context.Context) error
	Close()
}

func NewSession

func NewSession(session *gocql.Session) SessionxInterface

func WrapSession

func WrapSession(session *gocql.Session, err error) (SessionxInterface, error)

Directories

Path Synopsis
Package initializedb provides functionality for initializing a connection to ScyllaDB database using to gocql library.
Package initializedb provides functionality for initializing a connection to ScyllaDB database using to gocql library.

Jump to

Keyboard shortcuts

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