db

package
v0.0.0-...-db49bc4 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 7 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 {
	Conn *pgxpool.Pool
	// contains filtered or unexported fields
}

func NewDatabase

func NewDatabase(config *config.Database) *Database

func (*Database) Close

func (db *Database) Close()

func (*Database) ConnString

func (db *Database) ConnString() string

func (*Database) Connect

func (db *Database) Connect() error

func (*Database) Migrate

func (db *Database) Migrate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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