db

package
v0.0.0-...-c4e8904 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const SelectLogInfo = `select * from tenhou where log_id = ?;`
View Source
const SelectLogList = `select * from tenhou limit 20;`

Variables

Functions

This section is empty.

Types

type Database

type Database struct {
	TenhouDB     *sql.DB
	TenhouJsonDB *bbolt.DB
	// contains filtered or unexported fields
}

func NewDatabase

func NewDatabase(cfg *utils.Config, l utils.Logger) (*Database, error)

func (*Database) GetLogInfoByLogId

func (db *Database) GetLogInfoByLogId(log string) (*model.Log, error)

func (*Database) GetLogInfoList

func (db *Database) GetLogInfoList() ([]model.Log, error)

Jump to

Keyboard shortcuts

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