store

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyMigrations

func ApplyMigrations(db *sql.DB) error

ApplyMigrations applies all necessary migrations to bring the database to the current schema version

func InsertDiagnostics

func InsertDiagnostics(db *sql.DB, nodeID model.NoteID, diags []model.Diagnostic) error

InsertDiagnostics inserts diagnostics for a node

func OpenOrCreateDB

func OpenOrCreateDB(vaultRoot string) (*sql.DB, error)

OpenOrCreateDB opens or creates the SQLite database at the vault root

func ReplaceEdgesForNode

func ReplaceEdgesForNode(db *sql.DB, fromID model.NoteID, edges []model.RawLink) error

ReplaceEdgesForNode replaces all edges for a given node

func ReplaceTagsForNode

func ReplaceTagsForNode(db *sql.DB, nodeID model.NoteID, tags []string) error

ReplaceTagsForNode replaces all tags for a given node

func UpsertNode

func UpsertNode(db *sql.DB, nodeID model.NoteID, nodeType model.TypeName, key model.Key, title, state string, created, updated time.Time, path string, mtimeNs int64, sizeBytes int64, hash string) error

UpsertNode inserts or updates a node in the database

Types

This section is empty.

Jump to

Keyboard shortcuts

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