db

package
v0.0.0-...-bdab058 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: MIT 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 {
	*sql.DB
}

func ConnectSQL

func ConnectSQL(host, port, user, password, dbname string) (*DB, error)

func (*DB) Begin

func (d *DB) Begin() (*Tx, error)

Begin starts a transaction, wrap and return db transaction with 'Tx'

type Tx

type Tx struct {
	*sql.Tx
}

Jump to

Keyboard shortcuts

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