sqlite

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogEntryService

func NewLogEntryService(filePath string) (storage.LogEntryService, error)

func NewLogNoteService

func NewLogNoteService(filePath string) (storage.LogNoteService, error)

Types

type LogEntrySQLiteStore

type LogEntrySQLiteStore struct {
	*SQLiteStore
}

func (*LogEntrySQLiteStore) Add

func (les *LogEntrySQLiteStore) Add(entry models.LogEntry) (int64, error)

func (*LogEntrySQLiteStore) Delete

func (les *LogEntrySQLiteStore) Delete(id int64) error

func (*LogEntrySQLiteStore) List

LogEntry service methods

func (*LogEntrySQLiteStore) Move added in v0.0.9

func (les *LogEntrySQLiteStore) Move(id int64, newParentID int64) error

func (*LogEntrySQLiteStore) Update

func (les *LogEntrySQLiteStore) Update(id int64, update models.LogEntryOptional) error

type LogNoteSQLiteStore

type LogNoteSQLiteStore struct {
	*SQLiteStore
}

func (*LogNoteSQLiteStore) Add

func (lns *LogNoteSQLiteStore) Add(entryID int64, note models.Note) (int64, error)

func (*LogNoteSQLiteStore) Delete

func (lns *LogNoteSQLiteStore) Delete(entryID int64, noteID int64) error

func (*LogNoteSQLiteStore) List

func (lns *LogNoteSQLiteStore) List(entryID int64, options storage.LogNoteListOptions) ([]models.Note, int64, error)

LogNote service methods

func (*LogNoteSQLiteStore) ListForEntries added in v0.0.10

func (lns *LogNoteSQLiteStore) ListForEntries(entryIDs []int64) (map[int64][]models.Note, error)

func (*LogNoteSQLiteStore) Update

func (lns *LogNoteSQLiteStore) Update(entryID int64, noteID int64, update models.NoteOptional) error

type SQLiteStore

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

func New

func New(filePath string) (*SQLiteStore, error)

func (*SQLiteStore) Close

func (s *SQLiteStore) Close() error

Jump to

Keyboard shortcuts

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