infrastructure

package
v0.0.0-...-24031bd Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	NamedExec(string, interface{}) (sql.Result, error)
	Select(interface{}, string) error
}

func CreateDB

func CreateDB(dbConfig DbConfig) (DB, error)

func NewDB

func NewDB(sqlxDb *sqlx.DB) DB

type DbConfig

type DbConfig struct {
	User     string
	Password string
	DBName   string
	Host     string
	Port     int
}

Jump to

Keyboard shortcuts

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