Documentation
¶
Overview ¶
Package sqliteindex indexes note metadata in SQLite.
Index ¶
- type Store
- func (store *Store) Close() error
- func (store *Store) Delete(ctx context.Context, id uuid.UUID) error
- func (store *Store) JournalExists(ctx context.Context, date domain.Date) (bool, error)
- func (store *Store) JournalID(ctx context.Context, date domain.Date) (uuid.UUID, bool, error)
- func (store *Store) List(ctx context.Context) ([]ports.IndexRecord, error)
- func (store *Store) ReplaceAll(ctx context.Context, records []ports.IndexRecord) error
- func (store *Store) Upsert(ctx context.Context, note domain.Note) error
- func (store *Store) UpsertRecord(ctx context.Context, record ports.IndexRecord) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a SQLite note index.
func (*Store) JournalExists ¶
JournalExists reports whether a journal is indexed for date.
func (*Store) ReplaceAll ¶
ReplaceAll atomically replaces every indexed note with records.
func (*Store) UpsertRecord ¶
UpsertRecord adds or replaces indexed metadata for an edited source document.
Click to show internal directories.
Click to hide internal directories.