storage

package
v0.0.0-...-0a2561b Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func NewDB

func NewDB(url string) (*DB, error)

func (*DB) Close

func (db *DB) Close()

func (DB) Count

func (db DB) Count() (int, error)

func (*DB) CreateSchema

func (db *DB) CreateSchema() error

func (*DB) Delete

func (db *DB) Delete(movie *Movie) error

func (*DB) DropSchema

func (db *DB) DropSchema() error

func (*DB) Insert

func (db *DB) Insert(movie *Movie) error

func (*DB) Quiz

func (db *DB) Quiz(optionsCount, SimilarCount int) (Quiz, error)

func (*DB) Random

func (db *DB) Random(movie *Movie) error

func (*DB) RandomMany

func (db *DB) RandomMany(count int) ([]Movie, error)

func (*DB) Select

func (db *DB) Select(movie *Movie) error

type Movie

type Movie = common.Movie

type Quiz

type Quiz = common.Quiz

Jump to

Keyboard shortcuts

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