sqlite

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DbFileName = "filesIndex.db"

Variables

This section is empty.

Functions

func NewSearchEngine

func NewSearchEngine(opts ...Option) *sqliteFilesSearchEngine

Creates a new SQLite backed search engine for files and folders

Types

type Option

type Option func(o *sqliteSearchOption)

func WithDBPath

func WithDBPath(path string) Option

func WithLogLevel

func WithLogLevel(level logger.LogLevel) Option

type SearchIndexRecord

type SearchIndexRecord struct {
	gorm.Model
	ItemName      string `gorm:"index:idx_name_path_bucket,unique"`
	ItemExtension string `gorm:"size:10"`
	ItemPath      string `gorm:"index:idx_name_path_bucket,unique"`
	ItemType      string
	BucketSlug    string `gorm:"index:idx_name_path_bucket,unique"`
	DbId          string `gorm:"index"`
}

Jump to

Keyboard shortcuts

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