scylla

package
v0.10.14 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

Close closes the ScyllaDB session

func Health

func Health() error

Health checks if the ScyllaDB connection is healthy

func Init

func Init() (err error)

Init initializes the global ScyllaDB session. It reads ScyllaDB configuration from config.App.Scylla. If ScyllaDB is not enabled, it returns nil. The function is thread-safe and ensures the session is initialized only once.

func New

func New(cfg config.Scylla) (gocqlx.Session, error)

New returns a new ScyllaDB session with given configuration. It's the caller's responsibility to close the session, caller should always call Close() when it's no longer needed.

func Session

func Session() (gocqlx.Session, error)

Session returns the ScyllaDB session instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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