storage

package
v0.0.0-...-2045635 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2017 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(filename string) error

Delete removes a row containing the specified filename

func Get

func Get(keyword string, ignoreCase bool) ([]string, error)

Get retrieves names of image files which match the keyword

func InitDB

func InitDB(path string) error

InitDB initializes an sqlite3 database for imgrep at the specified path

func Insert

func Insert(filename string, keywords ...string) error

Insert inserts a filename-keyword mapping as a row in the database

func Lookup

func Lookup(filename string) bool

Lookup verifies that a filename is in the database

func Update

func Update(filename string, keywords ...string) error

Update updates a database entry

Types

This section is empty.

Jump to

Keyboard shortcuts

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