dao

package
v0.85.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

type Dao struct {
	*Mysql
	sqlc.CachedConn
}

Dao dao.

func New

func New(db *sqlx.DB, c sqlc.CachedConn) (dao *Dao)

New new a dao and return.

func (*Dao) Close

func (d *Dao) Close()

Close close the resource.

func (*Dao) Ping

func (d *Dao) Ping(ctx context.Context) (err error)

Ping ping the resource.

type Mysql

type Mysql struct {
	*sqlx.DB
	*mysql_dao.UsernameDAO
	*sqlx.CommonDAO
}

func (*Mysql) Close

func (d *Mysql) Close() error

func (*Mysql) Ping

func (d *Mysql) Ping(ctx context.Context) (err error)

Jump to

Keyboard shortcuts

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