bottom

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 7 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 {
	// contains filtered or unexported fields
}

Dao bottom dao

func New

func New(c *conf.Config) (d *Dao)

New new a bottom dao

func (*Dao) BottomByID

func (d *Dao) BottomByID(ctx context.Context, id int64) (rows *bottom.Bottom, err error)

BottomByID select bottom by id

func (*Dao) Bottoms

func (d *Dao) Bottoms(ctx context.Context) (res []*bottom.Bottom, err error)

Bottoms select all

func (*Dao) Close

func (d *Dao) Close()

Close close db

func (*Dao) Delete

func (d *Dao) Delete(ctx context.Context, id int64) (err error)

Delete delete by id

func (*Dao) Insert

func (d *Dao) Insert(ctx context.Context, a *bottom.Param, now time.Time) (err error)

Insert insert

func (*Dao) Update

func (d *Dao) Update(ctx context.Context, a *bottom.Param, now time.Time) (err error)

Update update

func (*Dao) UpdateByID

func (d *Dao) UpdateByID(ctx context.Context, a *bottom.Param, now time.Time) (err error)

UpdateByID update by id

Jump to

Keyboard shortcuts

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