Documentation ¶
Overview ¶
package db contains database methods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Items ¶
type Items struct {
// contains filtered or unexported fields
}
Items is a sqlite3 database for items.
func NewItems ¶
NewItems returns an Items database from the given dataSourcePath. It returns an error if the path doesnt exist or there was a problem with loading the database.
func (*Items) LoadItemsBySearchTerm ¶
LoadItemsBySearchTerm loads items that have the given search term in its item name. If the given search term contains multiple words an item that has any of the words in its name will be loaded.
Click to show internal directories.
Click to hide internal directories.