rdbms

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPrepareStatement = "Error when tying to prepare statement"
	ErrNotFound         = "Error no entry found with given arguments"
	ErrDuplicate        = "Error operation canceled due to the duplication entry"
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Host     string `koanf:"host"`
	Port     int    `koanf:"port"`
	Username string `koanf:"username"`
	Password string `koanf:"password"`
	Database string `koanf:"database"`
}

type RDBMS

type RDBMS interface {
	Execute(query string, in []any) error

	QueryRow(query string, in []any, out []any) error

	Query(query string, in []any, out [][]any) error
}

func New

func New(cfg *Config) (RDBMS, error)

Jump to

Keyboard shortcuts

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