db

package
v0.0.0-...-603707d Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear(path string)

Clear - delete all plays from table

func Create

func Create(path string)

Create - create table if not exists

func Delete

func Delete(path string, id int)

Delete - delete one play

func DeleteKey

func DeleteKey(path string, id int)

DeleteKey - delete one key

func Insert

func Insert(path string, play models.Play)

Insert - insert one play into DB

func InsertKey

func InsertKey(path string, key models.Key)

InsertKey - insert one key into DB

func Select

func Select(path string) []models.Play

Select - select all from DB

func SelectKeys

func SelectKeys(path string) []models.Key

SelectKeys - select all keys from DB

Types

This section is empty.

Jump to

Keyboard shortcuts

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