sqlite

package
v0.0.0-...-264e92e Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModInfo

type ModInfo struct {
	ID                 int     `db:"id"`
	Name               string  `db:"name"`
	Downloads          float64 `db:"downloadCount"`
	GameID             int     `db:"gameId"`
	GameCategoryID     int     `db:"gameCategoryId"`
	GamePopularityRank int     `db:"gamePopularityRank"`
	DateCreated        int64   `db:"dateCreated"`
	DateReleased       int64   `db:"dateReleased"`
	DateModified       int64   `db:"dateModified"`
}

type Sqlite

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

func NewSqlite

func NewSqlite(path string) (*Sqlite, error)

func (*Sqlite) Close

func (s *Sqlite) Close() error

func (*Sqlite) Search

func (s *Sqlite) Search(keyword string, limit, gameId, offset, sectionId int, ORDERBy string) ([]ModInfo, error)

func (*Sqlite) SetModInfo

func (s *Sqlite) SetModInfo(m ModInfo) error

Jump to

Keyboard shortcuts

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