Documentation ¶
Index ¶
- Variables
- func Modified(p string) error
- type DB
- func (db *DB) Empty() bool
- func (db *DB) FindByExtensionID(keepLatestVersion bool, ids ...string) []vscode.Extension
- func (db *DB) FindByUniqueID(keepLatestVersion bool, uniqueIDs ...string) []vscode.Extension
- func (db *DB) Inconsistent() (bool, error)
- func (db *DB) List() []vscode.Extension
- func (db *DB) Reload() error
- func (db *DB) Search(keepLatestVersion bool, text ...string) []vscode.Extension
- func (db *DB) Stats() DBStats
- func (db *DB) String() string
- type DBStats
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound error = errors.New("query returned no results")
)
Functions ¶
Types ¶
type DB ¶
type DB struct { Root string // contains filtered or unexported fields }
func (*DB) FindByExtensionID ¶ added in v1.0.2
func (*DB) FindByUniqueID ¶
FindByUniqueID returns an array of extensions matching a list of uniqueID's. If keepLatestVersion is true only the latest version is keep of all available version for returned extensions. When false all versions for an extension are included.
func (*DB) Inconsistent ¶
Inconsistent returns true if the database in memory is inconsistent with files on disk. Currently it only checks if version folders have been modified since the last database load.
Click to show internal directories.
Click to hide internal directories.