Documentation
¶
Index ¶
- func ApplyMigrations(db *sql.DB) error
- func InsertDiagnostics(db *sql.DB, nodeID model.NoteID, diags []model.Diagnostic) error
- func OpenOrCreateDB(vaultRoot string) (*sql.DB, error)
- func ReplaceEdgesForNode(db *sql.DB, fromID model.NoteID, edges []model.RawLink) error
- func ReplaceTagsForNode(db *sql.DB, nodeID model.NoteID, tags []string) error
- func UpsertNode(db *sql.DB, nodeID model.NoteID, nodeType model.TypeName, key model.Key, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyMigrations ¶
ApplyMigrations applies all necessary migrations to bring the database to the current schema version
func InsertDiagnostics ¶
InsertDiagnostics inserts diagnostics for a node
func OpenOrCreateDB ¶
OpenOrCreateDB opens or creates the SQLite database at the vault root
func ReplaceEdgesForNode ¶
ReplaceEdgesForNode replaces all edges for a given node
func ReplaceTagsForNode ¶
ReplaceTagsForNode replaces all tags for a given node
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.