db

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ErrorPrefixDb string = "dberror:"

Variables

This section is empty.

Functions

func IsDbConnError

func IsDbConnError(err error) bool

func NewSession

func NewSession(envConfig *env.EnvConfig, keyspace string, createKeyspace CreateKeyspaceEnumType) (*gocql.Session, error)

func WrapDbErrorWithQuery

func WrapDbErrorWithQuery(msg string, query string, dbErr error) error

Types

type CreateKeyspaceEnumType

type CreateKeyspaceEnumType int
const CreateKeyspaceOnConnect CreateKeyspaceEnumType = 1
const DoNotCreateKeyspaceOnConnect CreateKeyspaceEnumType = 0

Jump to

Keyboard shortcuts

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