store

package
v0.0.0-...-3b08ab8 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DatabaseFilePath string
}

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type Gamemode40l

type Gamemode40l struct {
	ID              int64
	PlayedAt        time.Time
	TimeMs          int64
	FinessePercent  float64
	TotalPieces     int64
	PiecesPerSecond float64
	RawData         sql.NullString
}

type InsertGamemode40LParams

type InsertGamemode40LParams struct {
	PlayedAt        time.Time
	TimeMs          int64
	FinessePercent  float64
	TotalPieces     int64
	PiecesPerSecond float64
	RawData         sql.NullString
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) GetLatestGamemode40L

func (q *Queries) GetLatestGamemode40L(ctx context.Context) (time.Time, error)

func (*Queries) InsertGamemode40L

func (q *Queries) InsertGamemode40L(ctx context.Context, arg InsertGamemode40LParams) (Gamemode40l, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type Store

type Store struct {
	*Queries
	// contains filtered or unexported fields
}

func NewStore

func NewStore(config Config) (*Store, error)

Jump to

Keyboard shortcuts

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