database

package
v0.0.0-...-f6d8415 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPsqlDB

func NewPsqlDB(cfg *PsqlDBConfig) (*bun.DB, error)

Types

type PsqlDB

type PsqlDB struct {
	// contains filtered or unexported fields
}

func (*PsqlDB) Connection

func (pdbc *PsqlDB) Connection() bun.IDB

func (*PsqlDB) Shutdown

func (pdbc *PsqlDB) Shutdown() error

type PsqlDBConfig

type PsqlDBConfig struct {
	Host     string
	Port     string
	User     string
	Password string
	DBName   string
	Ctx      context.Context
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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