fts5

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FTS5

type FTS5 struct {
	// contains filtered or unexported fields
}

func Open

func Open(path string, columnNames ...string) (*FTS5, error)

func OpenMem

func OpenMem(columnNames ...string) (*FTS5, error)

func (*FTS5) Close

func (fts *FTS5) Close() error

func (*FTS5) Delete

func (fts *FTS5) Delete(id int64) (bool, error)

func (*FTS5) DeleteAll

func (fts *FTS5) DeleteAll() error

func (*FTS5) Match

func (fts *FTS5) Match(query string, limit, offset int) ([]Result, error)

func (*FTS5) Upsert

func (fts *FTS5) Upsert(id int64, data map[string]string) error

func (*FTS5) UpsertBulk

func (fts *FTS5) UpsertBulk(src iter.Seq2[Item, error]) error

type Item

type Item struct {
	ID   int64
	Data map[string]string
}

type Result

type Result struct {
	ID   int64
	Rank float64
}

Jump to

Keyboard shortcuts

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