bobstanton319 downloadsExecute SELECT, INSERT, UPDATE, and DELETE statements on notes, properties, tasks, tables, headings and links using SQL and SQLite.
Execute SELECT, INSERT, UPDATE, and DELETE statements on notes, properties, tasks, tables, headings and links. Output to SlickGrid, Markdown Table, Chart.js or JavaScript rendering.
| Code Block | Description |
|---|---|
vaultquery |
Execute SQL queries, display results in SlickGrid or JavaScript rendering |
vaultquery-write |
Execute INSERT, UPDATE, DELETE with before/after preview |
vaultquery-chart |
Render query results as Chart.js visualizations |
vaultquery-chart-help |
Display chart output reference and examples |
vaultquery-calendar |
Render query results as FullCalendar calendars |
vaultquery-markdown |
Render query results as markdown tables |
vaultquery-markdown-help |
Display markdown output reference and examples |
vaultquery-calendar-help |
Display calendar output reference and examples |
vaultquery-schema |
Display database schema documentation |
vaultquery-view |
Define reusable SQL views |
vaultquery-function |
Define custom SQL functions in JavaScript |
vaultquery-help |
Display built-in help documentation |
vaultquery-function-help |
Display function reference |
vaultquery-examples |
Display example collections |
vaultquery-api-help |
API guide for third-party plugin developers |
notes table (always available):path (TEXT): File path relative to vault root (PRIMARY KEY)title (TEXT): Note title (auto-derived from path on INSERT)content (TEXT NOT NULL): Note content (without frontmatter, only if content indexing enabled)created (INTEGER): Creation timestamp in Unix milliseconds (auto-set on INSERT)modified (INTEGER): Last modification timestamp in Unix milliseconds (auto-set on INSERT)size (INTEGER): File size in bytes (auto-calculated from content on INSERT)properties table (when frontmatter/properties indexing is enabled):path (TEXT): Foreign key to notes.pathkey (TEXT): Property name (supports nested keys like "author.name")value (TEXT): Property value as stringvalue_type (TEXT): Type of value (auto-derived: 'number', 'boolean', or 'string')array_index (INTEGER): Index for array elements (NULL for non-array values)table_cells table (when table indexing is enabled):id (INTEGER): Auto-incrementing ID (PRIMARY KEY)path (TEXT): Foreign key to notes.pathtable_index (INTEGER): Index of table within the note (default: 0 = first table)table_name (TEXT): Name of the table (from preceding heading, optional)row_index (INTEGER): Row index within the table (0-based)column_name (TEXT): Column header namecell_value (TEXT): Cell content as stringvalue_type (TEXT): Type of value (auto-derived: 'number' or 'text')line_number (INTEGER): Line number where this table row appears (optional)tables table (when table indexing is enabled):path (TEXT): Foreign key to notes.pathtable_index (INTEGER): Index of table within the note (0-based)table_name (TEXT): Name of the table (from preceding heading, optional)block_id (TEXT): Obsidian block reference (e.g., ^table-1)start_offset (INTEGER): Character offset where table startsend_offset (INTEGER): Character offset where table endsline_number (INTEGER): Line number for INSERT positioning (optional)table_rows view (when table indexing is enabled):A convenience view for row-based table operations. Columns:
path (TEXT): Foreign key to notes.pathtable_index (INTEGER): Index of table within the note (0-based)row_index (INTEGER): Row index within the table (0-based)row_json (TEXT): JSON object of column_name→cell_value pairstable_line_number (INTEGER): Line number for INSERT positioning (optional)tasks table (when task indexing is enabled):id (INTEGER): Auto-incrementing task ID (PRIMARY KEY)path (TEXT): Foreign key to notes.pathtask_text (TEXT): Content of the taskstatus (TEXT): Task status - TODO, IN_PROGRESS, DONE, CANCELLED (default: 'TODO')priority (TEXT): Priority level - highest, high, medium, low, lowest, or NULLdue_date (TEXT): Due date in YYYY-MM-DD format or NULLscheduled_date (TEXT): Scheduled date in YYYY-MM-DD format or NULLstart_date (TEXT): Start date in YYYY-MM-DD format or NULLcreated_date (TEXT): Task creation date in YYYY-MM-DD format or NULLdone_date (TEXT): Completion date in YYYY-MM-DD format or NULLcancelled_date (TEXT): Cancellation date in YYYY-MM-DD format or NULLrecurrence (TEXT): Recurrence rule (e.g., "every week") or NULLon_completion (TEXT): Action on completion or NULLtask_id (TEXT): Custom task identifier or NULLdepends_on (TEXT): Task dependencies or NULLtags (TEXT): Space-separated hashtags or NULLline_number (INTEGER): Line number where task appears (optional)block_id (TEXT): Obsidian block reference (e.g., ^task-1)start_offset (INTEGER): Character offset where task startsend_offset (INTEGER): Character offset where task endsanchor_hash (TEXT): Content-based hash for change detectionsection_heading (TEXT): Heading under which the task appearsheadings table (when heading indexing is enabled):id (INTEGER): Auto-incrementing ID (PRIMARY KEY)path (TEXT): Foreign key to notes.pathlevel (INTEGER): Heading level (1-6 for H1-H6)line_number (INTEGER): Line number where heading appears (1-based)heading_text (TEXT): Text content of the headingblock_id (TEXT): Obsidian block reference (e.g., ^heading-1)start_offset (INTEGER): Character offset where heading startsend_offset (INTEGER): Character offset where heading endsanchor_hash (TEXT): Content-based hash for change detectionlinks table (when link indexing is enabled):id (INTEGER): Auto-incrementing link ID (PRIMARY KEY)path (TEXT): Foreign key to notes.pathlink_text (TEXT): Display text of the link (auto-derived from link_target if not provided)link_target (TEXT): Target of the link (original text for internal, URL for external)link_target_path (TEXT): Resolved file path for internal linkslink_type (TEXT): Type of link - auto-derived: 'external' if target starts with http/https, otherwise 'internal'line_number (INTEGER): Line number where link appears (optional)insert_position (TEXT): Position hint for INSERT operations - new_line (default), line_start, or line_endtags table (when tag indexing is enabled):id (INTEGER): Auto-incrementing ID (PRIMARY KEY)path (TEXT): Foreign key to notes.pathtag_name (TEXT): Name of the tagline_number (INTEGER): Line number where tag appears (optional)insert_position (TEXT): Position hint for INSERT operations - new_line (default), line_start, or line_endlist_items table (when list item indexing is enabled):id (INTEGER): Auto-incrementing ID (PRIMARY KEY)path (TEXT): Foreign key to notes.pathlist_index (INTEGER): Index of the list within the note (default: 0)item_index (INTEGER): Index of the item within all lists in the note (default: 0)parent_index (INTEGER): Index of parent item for nested lists, or NULLcontent (TEXT): Text content of the list itemlist_type (TEXT): Type of list - bullet, numbered (default: 'bullet')indent_level (INTEGER): Nesting depth (0 = top level, default: 0)line_number (INTEGER): Line number where item appears (optional)block_id (TEXT): Obsidian block referencestart_offset (INTEGER): Character offset where item startsend_offset (INTEGER): Character offset where item endsanchor_hash (TEXT): Content-based hash for change detectionAdd a vaultquery code block with a SQL query:
SELECT title, path, modified FROM notes
WHERE content LIKE '%important%'
ORDER BY modified DESC
LIMIT 10
Results render in a sortable SlickGrid table.
Important: Write operations permanently modify vault files. VaultQuery has no built-in undo or version history. Obsidian Sync provides version history. Write operations require the plugin setting to be enabled.
vaultquery-write runs write statements with file synchronization:
-- Add a new note
INSERT INTO notes (path, content)
VALUES ('Condo Notes.md', '# Shopping List for new Condo');
-- Add a new task
INSERT INTO tasks (path, task_text, status)
VALUES ('Condo Notes.md', 'Buy plasma TV', 'TODO');
-- Add a new tag
INSERT INTO tags (path, tag_name)
VALUES ('Condo Notes.md', 'party-pad');
-- Add a new link
INSERT INTO links (path, link_target)
VALUES ('Condo Notes.md', 'Office/Dinner Party Plan.md');
-- Add a heading at a specific line
INSERT INTO headings (path, level, heading_text, line_number)
VALUES ('Condo Notes.md', 2, 'Sliding glass door repair quotes:', 4);
-- Add a tag at the start of a line
INSERT INTO tags (path, tag_name, line_number, insert_position)
VALUES ('Condo Notes.md', 'fake-overtime-assignment', 3, 'line_end');
-- Create a new table at a specific line using table_rows view
INSERT INTO table_rows (path, table_index, row_json, table_line_number)
VALUES ('Condo Notes.md', 1, json('{"Vendor": "", "Price": ""}'), 5);
CTEs support multi-step inserts.
WITH
-- Select all notes in the Projects folder
project_notes AS (
SELECT path, title FROM notes
WHERE path LIKE 'Projects/%'
ORDER BY title
),
-- Create a flattened list of links to those notes
flattenedLinks AS (
SELECT GROUP_CONCAT('- ' || link(path, title), '\n') as list
FROM project_notes
)
-- Create an index linking to each note in the Projects folder
INSERT INTO notes (path, content)
SELECT
'Projects/Index.md',
'# Project Index
' || COALESCE(list, '_No projects found_')
FROM flattenedLinks;
Existing records can be modified with vaultquery-write:
UPDATE notes
SET content = content || '\n\nList condo on eBay at 80% of purchase price.'
WHERE path = 'Condo Notes.md'
Records can be removed with vaultquery-write:
DELETE FROM notes
WHERE path = 'Condo Notes.md'
vaultquery-markdown generates exportable Markdown tables:
SELECT title, path, modified FROM notes
WHERE content LIKE '%important%'
ORDER BY modified DESC
LIMIT 10
Configure the markdown output with a config: section:
SELECT title, path, size
FROM notes
ORDER BY size DESC
LIMIT 10;
config:
alignment: left, left, right
Available config options:
alignment: Column alignments (left, center, right)Tip: Format dates directly in SQL using
datetime()functions.
JavaScript rendering can be enabled in settings for complete control over formatting. Rendering code is user-authored JavaScript and runs with the plugin's permissions. HTML template execution is handled by the local user-template-renderer package.
SELECT title, path, modified FROM notes
WHERE content LIKE '%important%'
ORDER BY modified DESC
LIMIT 10;
template:
return `
<div>
<h3>Important Notes (${count} results)</h3>
<ul>
${results.map(note => `
<li>
${h.link(note.path, note.title)} -
<em>${h.formatDate(note.modified)}</em>
</li>
`).join('')}
</ul>
</div>
`;
JavaScript rendering code receives these variables:
results - Array of query result rowsquery - The SQL query that was executedcount - Number of resultsh - Helper functions objectThe h object provides 50+ utility functions from placeholder-resolver.
| Helper | Description |
|---|---|
h.link(path, text?) |
Create HTML internal link |
h.wikilink(path, alias?) |
Create wikilink [[path]] or [[path|alias]] |
h.wikilinkHeading(path, heading, display?) |
Link to heading [[path#heading]] |
h.wikilinkBlock(path, blockId, display?) |
Link to block [[path#^id]] |
h.pathToTitle(path) |
Extract display title from path |
| Helper | Description |
|---|---|
h.escape(text) |
HTML escape |
h.lower(text) |
Lowercase |
h.upper(text) |
Uppercase |
h.capitalize(text) |
Capitalize first letter |
h.trim(text) |
Trim whitespace |
h.truncate(text, length?, suffix?) |
Truncate with ellipsis |
h.slugify(text) |
URL-safe slug |
h.replace(text, search, replacement) |
Replace all occurrences |
h.regexReplace(text, pattern, replacement) |
Regex replace |
h.split(text, delimiter) |
Split to array |
h.before(text, delimiter) |
Text before first delimiter |
h.after(text, delimiter) |
Text after first delimiter |
h.beforeLast(text, delimiter) |
Text before last delimiter |
h.afterLast(text, delimiter) |
Text after last delimiter |
h.unquote(text) |
Remove surrounding quotes |
h.isBlank(text) |
Check if empty/whitespace |
h.stripHtml(text) |
Remove HTML tags |
h.nl2br(text) |
Newlines to <br> |
| Helper | Description |
|---|---|
h.filename(path) |
Filename with extension |
h.pathBasename(path) |
Filename without extension |
h.pathExtension(path) |
Extension without dot |
h.pathParent(path) |
Parent folder path |
| Helper | Description |
|---|---|
h.formatDate(timestamp, format?) |
Format date (tokens: YYYY, MM, DD, HH, mm, ss) |
h.formatNumber(num, decimals?) |
Format with locale separators |
h.formatBytes(bytes, decimals?) |
Human-readable file size |
h.pluralize(count, singular, plural?) |
Pluralize word |
| Helper | Description |
|---|---|
h.join(array, delimiter?) |
Join array elements |
h.first(array) |
First element |
h.last(array) |
Last element |
h.unique(array) |
Remove duplicates |
h.sortBy(array, key, direction?) |
Sort by property |
h.groupBy(array, key) |
Group by property |
h.sum(array) |
Sum numbers |
h.avg(array) |
Average |
h.min(array) / h.max(array) |
Min/max values |
| Helper | Description |
|---|---|
h.keys(obj) |
Object keys |
h.values(obj) |
Object values |
h.entries(obj) |
Key-value pairs |
h.pick(obj, ...keys) |
Select properties |
h.omit(obj, ...keys) |
Exclude properties |
h.json(value, pretty?) |
Stringify to JSON |
h.parseJson(text) |
Parse JSON string |
| Helper | Description |
|---|---|
h.sqlIn(array) |
Format for IN clause: 'a', 'b', 'c' |
h.sqlEscape(value) |
Escape single quotes |
h.sqlLiteral(value) |
Format as SQL literal |
| Helper | Description |
|---|---|
h.default(value, defaultValue) |
Fallback for null/undefined |
h.ifEmpty(value, replacement) |
Replace empty strings |
| Table/View | INSERT | UPDATE | DELETE |
|---|---|---|---|
| notes | ✅ Creates files | ✅ Modifies files | ✅ Deletes files* |
| notes_with_properties | ✅ Creates with frontmatter | ✅ Modifies all | ✅ Deletes files* |
| note_properties | ✅ Adds to existing note | ✅ Modifies YAML | ✅ Removes all props |
| tasks | ✅ Adds tasks | ✅ Modifies tasks | ✅ Removes tasks |
| headings | ✅ Adds headings | ✅ Modifies text | ✅ Removes headings |
| list_items | ✅ Adds items | ✅ Modifies items | ✅ Removes items |
| properties | ✅ Adds to YAML | ✅ Modifies YAML | ✅ Removes from YAML |
| table_cells | ✅ Adds cells‡ | ✅ Modifies cells | ✅ Removes cells |
| table_rows | ✅ Adds rows‡ | ✅ Modifies rows | ✅ Removes rows |
| tags | ✅ Frontmatter or inline† | ✅ Renames tags | ✅ Removes tags |
| links | ✅ Appends or at line† | ✅ Updates links | ✅ Removes links |
†With line_number and optional insert_position (new_line, line_start, line_end)
‡With line_number (table_cells) or table_line_number (table_rows) to position new tables
*Requires "Allow file deletion" setting to be enabled
Key Points:
tasks, headings, list_items INSERT at specified line_number or end of file (line-based elements)tags INSERT adds to frontmatter when no line_number specified, or inserts inline with insert_positionlinks INSERT appends to end of file when no line_number specified, or inserts at position with insert_positiontable_cells and table_rows INSERT can use line_number/table_line_number to create tables at specific positionsnotes_with_properties creates files with frontmatter in one operationnote_properties handles properties-only queries (path + property columns, no notes columns)table_rows handles table row manipulation with JSONvaultquery-chart renders query results with Chart.js.
Charts require columns named label and value (or x and y for scatter plots). Add a series column for multiple datasets.
| Option | Description |
|---|---|
type |
Chart type: bar, line, pie, doughnut, or scatter (required) |
title |
Chart title displayed above the chart |
datasetLabel |
Legend label for the dataset |
xLabel |
X-axis label (bar, line, scatter only) |
yLabel |
Y-axis label (bar, line, scatter only) |
datasetBackgroundColor |
Fill color for bars/points |
datasetBorderColor |
Border color for bars/points |
| Column | Description |
|---|---|
backgroundColor |
Per-point fill color |
borderColor |
Per-point border color |
chartType |
Per-series chart type for mixed charts (bar, line) |
SELECT
strftime('%Y-%m', created/1000, 'unixepoch') as label,
COUNT(*) as value
FROM notes
WHERE created > 0
GROUP BY label
ORDER BY label;
config:
type: line
title: Notes Created Per Month
xLabel: Month
yLabel: Notes
datasetBackgroundColor: rgba(75, 192, 192, 0.2)
datasetBorderColor: rgba(75, 192, 192, 1)
SELECT
COALESCE(SUBSTR(path, 1, INSTR(path || '/', '/') - 1), 'Root') as label,
COUNT(*) as value
FROM notes
GROUP BY label
ORDER BY value DESC
LIMIT 8;
config:
type: doughnut
title: Notes by Top-Level Folder
SELECT
CASE CAST(strftime('%w', modified/1000, 'unixepoch') AS INTEGER)
WHEN 0 THEN 'Sun'
WHEN 1 THEN 'Mon'
WHEN 2 THEN 'Tue'
WHEN 3 THEN 'Wed'
WHEN 4 THEN 'Thu'
WHEN 5 THEN 'Fri'
WHEN 6 THEN 'Sat'
END as label,
COUNT(*) as value,
CASE CAST(strftime('%w', modified/1000, 'unixepoch') AS INTEGER)
WHEN 0 THEN 'rgba(255, 99, 132, 0.8)'
WHEN 6 THEN 'rgba(255, 99, 132, 0.8)'
ELSE 'rgba(54, 162, 235, 0.8)'
END as backgroundColor
FROM notes
GROUP BY strftime('%w', modified/1000, 'unixepoch')
ORDER BY CAST(strftime('%w', modified/1000, 'unixepoch') AS INTEGER);
config:
type: bar
title: Files Modified by Day of Week
SELECT
status as label,
COUNT(*) as value,
CASE status
WHEN 'DONE' THEN 'rgba(75, 192, 192, 0.8)'
WHEN 'TODO' THEN 'rgba(255, 205, 86, 0.8)'
WHEN 'IN_PROGRESS' THEN 'rgba(54, 162, 235, 0.8)'
WHEN 'CANCELLED' THEN 'rgba(255, 99, 132, 0.8)'
ELSE 'rgba(201, 203, 207, 0.8)'
END as backgroundColor,
CASE status
WHEN 'DONE' THEN 'rgba(75, 192, 192, 1)'
WHEN 'TODO' THEN 'rgba(255, 205, 86, 1)'
WHEN 'IN_PROGRESS' THEN 'rgba(54, 162, 235, 1)'
WHEN 'CANCELLED' THEN 'rgba(255, 99, 132, 1)'
ELSE 'rgba(201, 203, 207, 1)'
END as borderColor
FROM tasks
GROUP BY status;
config:
type: pie
title: Task Status
SELECT
status as label,
COALESCE(priority, 'none') as series,
COUNT(*) as value,
CASE priority
WHEN 'high' THEN 'rgba(255, 99, 132, 0.8)'
WHEN 'medium' THEN 'rgba(255, 205, 86, 0.8)'
WHEN 'low' THEN 'rgba(75, 192, 192, 0.8)'
ELSE 'rgba(201, 203, 207, 0.8)'
END as backgroundColor
FROM tasks
GROUP BY status, priority;
config:
type: bar
title: Tasks by Status and Priority
SELECT
strftime('%Y-%m', created/1000, 'unixepoch') as label,
COUNT(*) as value,
'Notes' as series,
'bar' as chartType,
'rgba(54, 162, 235, 0.8)' as backgroundColor
FROM notes WHERE created > 0
GROUP BY label
UNION ALL
SELECT
strftime('%Y-%m', created/1000, 'unixepoch') as label,
ROUND(AVG(size)/1024.0, 1) as value,
'Avg Size (KB)' as series,
'line' as chartType,
'rgba(255, 99, 132, 1)' as backgroundColor
FROM notes WHERE created > 0
GROUP BY label
ORDER BY label;
config:
type: bar
title: Monthly Notes with Average Size Trend
SELECT
ROUND(size/1024.0, 1) as x,
LENGTH(content) - LENGTH(REPLACE(content, ' ', '')) as y
FROM notes
WHERE size > 0 AND size < 100000
LIMIT 100;
config:
type: scatter
title: File Size vs Approximate Word Count
xLabel: Size (KB)
yLabel: Words
datasetBackgroundColor: rgba(54, 162, 235, 0.6)
SELECT status, task_text, path FROM tasks
WHERE status IN ('TODO', 'DONE', 'IN_PROGRESS')
ORDER BY status, path;
template:
const grouped = results.reduce((acc, t) => {
(acc[t.status] ||= []).push(t);
return acc;
}, {});
return Object.entries(grouped).map(([status, tasks]) => `
<details open>
<summary><strong>${status}</strong> (${tasks.length})</summary>
<ul>
${tasks.map(t => `<li>${h.link(t.path)} - ${h.renderWikilinks(t.task_text)}</li>`).join('')}
</ul>
</details>
`).join('');
SELECT title, path, modified, SUBSTR(content, 1, 150) as preview
FROM notes
ORDER BY modified DESC
LIMIT 5;
template:
return `
<div style="display: flex; flex-direction: column; gap: 1em;">
${results.map(n => `
<div style="border-left: 3px solid var(--interactive-accent); padding-left: 1em;">
<strong>${h.link(n.path, n.title)}</strong>
<small style="color: var(--text-muted);"> — ${h.formatDate(n.modified)}</small>
<p style="margin: 0.5em 0; color: var(--text-muted);">${h.escape(n.preview)}...</p>
</div>
`).join('')}
</div>
`;
SELECT tag_name, COUNT(*) as count
FROM tags
GROUP BY tag_name
ORDER BY count DESC
LIMIT 20;
template:
const max = Math.max(...results.map(r => r.count));
return `
<div style="display: flex; flex-wrap: wrap; gap: 0.5em;">
${results.map(t => {
const size = 0.8 + (t.count / max) * 1.2;
return `<span style="font-size: ${size}em; opacity: ${0.5 + t.count/max/2};">#${t.tag_name}</span>`;
}).join('')}
</div>
`;
VaultQuery exposes an API for third-party Obsidian plugins. The API includes the ability to execute SQL queries, register custom functions, custom views, write operations when "Allow write operations" is enabled, and managed third-party provider table registration.
// Get the VaultQuery API
const vaultQuery = this.app.plugins.getPlugin('vaultquery');
if (vaultQuery?.api) {
// Wait for indexing to complete
await vaultQuery.api.waitForIndexing();
// Execute queries
const results = await vaultQuery.api.query('SELECT * FROM notes LIMIT 10');
// Register custom functions
vaultQuery.api.registerCustomFunction('myFunc', 'function(x) { return x * 2; }');
}
For third-party provider tables, prefer registerVaultQueryTableProviders() from vaultquery/api. It handles mobile-safe API waiting, capability checks, retry, database recovery, and cleanup.
The vaultquery-api-help code block provides complete API documentation in any note.
The database is stored in Obsidian's Configuration Folder in /plugins/vaultquery/database.db when using disk storage.
Grid refresh after scrolling: Obsidian's DOM virtualization may detach grid elements when scrolling long notes. The refresh button restores the grid, and the plugin attempts periodic auto-restore.
Block references for updates: Task and heading updates work best when content has explicit block references (e.g., ^task-1). Without them, the plugin uses content hashing which is not as accurate.
Column width persistence: Column widths are remembered during a session and are intentionally not remembered when Obsidian restarts.
VaultQuery has one network-capable code path: loading the SQL.js WebAssembly binary when a local binary is not available or when CDN loading is selected.
| Package | URL | Purpose |
|---|---|---|
| VaultQuery | https://sql.js.org/dist/sql-wasm.wasm |
Loads the SQL.js WebAssembly binary required for the local SQLite database when CDN loading is selected or local loading falls back to CDN. |
SQL.js loading modes:
| Mode | Behavior | Network activity |
|---|---|---|
Auto |
Tries a local sql-wasm.wasm file first, then falls back to the SQL.js CDN. |
Only if the local file is missing. |
Local only |
Loads sql-wasm.wasm from the plugin folder or custom path. |
None. Initialization fails if the file is unavailable. |
CDN only |
Downloads sql-wasm.wasm from sql.js.org. |
One request during database initialization. |
When local caching is enabled, a CDN-loaded binary is saved to the plugin folder for later use.
VaultQuery uses timers for local indexing, rendering, and UI coordination. Timers are not used for telemetry and do not periodically transmit vault data.
| Timed event | Timing | Purpose | Network activity |
|---|---|---|---|
| File modification debounce | 300 ms after the latest file change | Groups rapid vault file events before indexing an individual file. | None. |
| Indexing queue delay | 200 ms | Batches queued file paths before local index updates. | None. |
| Pending block progress polling | 500 ms while indexing is active | Updates loading/progress text for query and help blocks, then renders pending blocks after indexing finishes. | None. |
| Settings reindex debounce | 1 second, with 1 second retry while indexing is busy | Delays full reindexing after settings changes that affect indexed data. | None. |
| Grid restoration interval | 2 seconds while the plugin is loaded | Restores rendered SlickGrid tables that Obsidian DOM virtualization may detach during scrolling or view changes. | None. |
| Scroll restoration delay | 150 ms after workspace scroll events | Runs a local grid restoration pass after scroll activity settles. | None. |
| Rebuild button progress polling | 500 ms during a manual rebuild | Updates the settings button text while a user-initiated index rebuild is running. | None. |
| API availability retry | Exponential backoff for third-party integrations waiting for VaultQuery | Allows dependent plugins to wait for the VaultQuery API during startup. | None. |
| Provider registration retry | Default 5 seconds after failed provider registration | Retries local registration of third-party provider tables after startup or database recovery. | VaultQuery calls provider registration callbacks only. Network behavior, if any, belongs to the provider plugin. |
| Render and layout scheduling | 0-50 ms for grid, chart, calendar, and JavaScript-rendered output | Allows Obsidian and browser layout to complete before measuring or rendering UI elements. | None. |
SQL.js WASM loading is not scheduled by a timer. It occurs during database initialization according to the SQL.js loading mode described above.
| Package | Description |
|---|---|
| sql.js | SQLite database engine compiled to WebAssembly |
| SlickGrid | Data grid for query results |
| Chart.js | Chart rendering for vaultquery-chart blocks |
| FullCalendar | Calendar rendering for vaultquery-calendar blocks |
| markdown-table | Markdown table output formatting |
| fnv-plus | Non-cryptographic hashes for change detection |
| placeholder-resolver | Template variable resolution and helper functions |
| user-template-renderer | Shared local renderer for trusted user-authored HTML templates |