sqldb

package
v0.0.0-...-640fa72 Latest Latest
Warning

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

Go to latest
Published: May 30, 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 MsSQL

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

func (MsSQL) Close

func (h MsSQL) Close() error

func (*MsSQL) Name

func (*MsSQL) Name() string

func (MsSQL) Query

func (h MsSQL) Query(f func(db *sqlx.DB) error) error

func (MsSQL) QueryTx

func (h MsSQL) QueryTx(f func(*sqlx.Tx) error) error

func (MsSQL) Stop

func (h MsSQL) Stop()

type MySQL

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

func (MySQL) Close

func (h MySQL) Close() error

func (*MySQL) Name

func (*MySQL) Name() string

func (MySQL) Query

func (h MySQL) Query(f func(db *sqlx.DB) error) error

func (MySQL) QueryTx

func (h MySQL) QueryTx(f func(*sqlx.Tx) error) error

func (MySQL) Stop

func (h MySQL) Stop()

type PgSQL

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

func (PgSQL) Close

func (h PgSQL) Close() error

func (*PgSQL) Name

func (*PgSQL) Name() string

func (PgSQL) Query

func (h PgSQL) Query(f func(db *sqlx.DB) error) error

func (PgSQL) QueryTx

func (h PgSQL) QueryTx(f func(*sqlx.Tx) error) error

func (PgSQL) Stop

func (h PgSQL) Stop()

type SqlDB

type SqlDB interface {
	Query(func(*sqlx.DB) error) error
	QueryTx(func(*sqlx.Tx) error) error
	Close() error
}

func NewMsSQL

func NewMsSQL(host, port, user, password, dbName string) SqlDB

func NewMySQL

func NewMySQL(host, port, user, password, dbName string) SqlDB

func NewPgSQL

func NewPgSQL(host, port, user, password, dbName string) SqlDB

Jump to

Keyboard shortcuts

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