sqlite

package
v0.0.0-...-1f5ce45 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	*sql.DB
}

func NewStore

func NewStore(filename string) (*Store, error)

func (*Store) GetAllFaces

func (c *Store) GetAllFaces() ([]*gildasai.FaceItem, error)

func (*Store) GetFaceDistance

func (c *Store) GetFaceDistance(item1, item2 *gildasai.FaceItem) (float32, bool, error)

func (*Store) GetFaces

func (c *Store) GetFaces(id string) ([]*gildasai.FaceItem, bool, error)

func (*Store) GetPrediction

func (c *Store) GetPrediction(id string) (*gildasai.PredictionItem, bool, error)

func (*Store) SearchPrediction

func (c *Store) SearchPrediction(query, after string, n int) ([]*gildasai.PredictionItem, error)

func (*Store) StoreFace

func (c *Store) StoreFace(item *gildasai.FaceItem) error

func (*Store) StoreFaceDistance

func (c *Store) StoreFaceDistance(item1, item2 *gildasai.FaceItem, distance float32) error

func (*Store) StorePrediction

func (c *Store) StorePrediction(id string, item *gildasai.PredictionItem) error

Jump to

Keyboard shortcuts

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