db

package
v0.0.0-...-476bcdb Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(cnf ConfingDB) (*sqlx.DB, error)

func HandleError

func HandleError(err error) error

Types

type ConfingDB

type ConfingDB struct {
	Host     string
	Port     int
	User     string
	Password string
	Name     string
}

type ErrObjectNotFound

type ErrObjectNotFound struct{}

ErrObjectNotFound is used to indicate that selecting an individual object yielded no result. Declared as type, not value, for consistency reasons.

func (ErrObjectNotFound) Error

func (ErrObjectNotFound) Error() string

func (ErrObjectNotFound) Unwrap

func (ErrObjectNotFound) Unwrap() error

Jump to

Keyboard shortcuts

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