mysql

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EriboStore

type EriboStore struct {
	*sqlx.DB
}

func NewEriboStore

func NewEriboStore(dataSource string) (*EriboStore, error)

func (*EriboStore) AddCmdLog added in v1.3.0

func (db *EriboStore) AddCmdLog(l *eribo.CmdLog) error

func (*EriboStore) AddFeedback

func (db *EriboStore) AddFeedback(f *eribo.Feedback) error

func (*EriboStore) AddLothLog added in v1.3.0

func (db *EriboStore) AddLothLog(l *eribo.LothLog) error

func (*EriboStore) AddMessageWithURLs

func (db *EriboStore) AddMessageWithURLs(m *eribo.Message, urls []string) (err error)

func (*EriboStore) CmdStats added in v1.8.5

func (db *EriboStore) CmdStats() ([]*eribo.CmdStat, error)

func (*EriboStore) GetAllFeedback added in v1.3.0

func (db *EriboStore) GetAllFeedback(limit, offset int) ([]*eribo.Feedback, error)

func (*EriboStore) GetCmdLog added in v1.3.0

func (db *EriboStore) GetCmdLog(id int64) (*eribo.CmdLog, error)

func (*EriboStore) GetImage added in v1.6.2

func (db *EriboStore) GetImage(id int64) (*eribo.Image, error)

func (*EriboStore) GetImages

func (db *EriboStore) GetImages(limit, offset int, reverse, filterDone bool) ([]*eribo.Image, error)

func (*EriboStore) GetRecentCmdLogs added in v1.3.0

func (db *EriboStore) GetRecentCmdLogs(limit, offset int) ([]*eribo.CmdLog, error)

func (*EriboStore) GetRecentFeedback added in v1.3.0

func (db *EriboStore) GetRecentFeedback(limit, offset int) ([]*eribo.Feedback, error)

func (*EriboStore) GetRecentLothLogs added in v1.3.0

func (db *EriboStore) GetRecentLothLogs(limit, offset int) ([]*eribo.LothLog, error)

func (*EriboStore) SetImageKuid added in v1.6.2

func (db *EriboStore) SetImageKuid(id int64, kuid int) error

func (*EriboStore) ToggleImageDone added in v1.6.1

func (db *EriboStore) ToggleImageDone(id int64) (err error)

func (*EriboStore) Tx added in v1.6.2

func (db *EriboStore) Tx(fn func(*sqlx.Tx) error) (err error)

Jump to

Keyboard shortcuts

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