db

package
v0.0.0-...-a9fe51a Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Db *sql.DB
	// contains filtered or unexported fields
}

func Connect

func Connect(conf *config.Configuration) (*Database, error)

func (*Database) Close

func (db *Database) Close()

func (*Database) FindStatement

func (db *Database) FindStatement(key string) (*sql.Stmt, error)

func (*Database) PrepareStatement

func (db *Database) PrepareStatement(key, sql string) error

type ErrDbTypeNotSupported

type ErrDbTypeNotSupported string

func (ErrDbTypeNotSupported) Error

func (db ErrDbTypeNotSupported) Error() string

type ErrStatementAlreadyPresent

type ErrStatementAlreadyPresent string

func (ErrStatementAlreadyPresent) Error

type ErrStatementNotFound

type ErrStatementNotFound string

func (ErrStatementNotFound) Error

func (sn ErrStatementNotFound) Error() string

Jump to

Keyboard shortcuts

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