db

package
v0.0.0-...-a9a82f6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: GPL-3.0 Imports: 6 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 struct {
	DB *godb.DBO
}

func Get

func Get(cfg DBConfig) (*DB, error)

func (*DB) BeginTx

func (db *DB) BeginTx(ctx context.Context) (*godb.SqlTx, error)

func (*DB) EndTx

func (db *DB) EndTx(tx *godb.SqlTx, err error) error

type DBConfig

type DBConfig struct {
	Host     string
	Port     int
	User     string
	Password string
	Database string
}

Jump to

Keyboard shortcuts

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