db

package
v3.1.17 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetIndexer = sync.OnceValue(func() *Indexer {
	return &Indexer{Indexer: &inner_db.Indexer{}}
})

Functions

func ToDBOptions

func ToDBOptions(ctx context.Context, options *internal.SearchOptions) (*issue_model.IssuesOptions, error)

Types

type Indexer

type Indexer struct {
	indexer_internal.Indexer
}

Indexer implements Indexer interface to use database's like search

func (*Indexer) Delete

func (i *Indexer) Delete(_ context.Context, _ ...int64) error

Delete dummy function

func (*Indexer) FindWithIssueOptions

func (i *Indexer) FindWithIssueOptions(ctx context.Context, opt *issue_model.IssuesOptions, otherConds ...builder.Cond) (*internal.SearchResult, error)

func (*Indexer) Index

func (i *Indexer) Index(_ context.Context, _ ...*internal.IndexerData) error

Index dummy function

func (*Indexer) Search

func (i *Indexer) Search(ctx context.Context, options *internal.SearchOptions) (*internal.SearchResult, error)

Search searches for issues

func (*Indexer) SupportedSearchModes

func (i *Indexer) SupportedSearchModes() []indexer.SearchMode

Source Files

  • db.go
  • options.go

Jump to

Keyboard shortcuts

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