database

package
v0.0.0-...-8a20b77 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Maker

type Maker interface {
	Connect(host string, port int, user string, password string, dbname string) error
	GetConnection() *sqlx.DB
	Close() error
}

func InitPostgresql

func InitPostgresql() Maker

type PgDb

type PgDb struct {
	Conn *sqlx.DB
}

func (*PgDb) Close

func (db *PgDb) Close() error

func (*PgDb) Connect

func (db *PgDb) Connect(host string, port int, user string, password string, dbname string) error

func (*PgDb) GetConnection

func (db *PgDb) GetConnection() *sqlx.DB

Jump to

Keyboard shortcuts

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