h-sphere_sql-seal/docs
Kacper c038366783
feat: add TAGS() macro and auto-detection for multi-tag AND queries (#202)
* feat: add TAGS() macro and auto-detection for multi-tag AND queries

Introduces two complementary solutions for the common mistake of filtering
by multiple tags with AND (which always returns zero results):

1. TAGS() macro: explicit opt-in syntax
   WHERE TAGS('#project', '#active')
   → path IN (SELECT path FROM tags WHERE tag = '#project'
              INTERSECT SELECT path FROM tags WHERE tag = '#active')

2. Auto-detection: transparently rewrites the broken pattern
   WHERE tag = '#a' AND tag = '#b'
   → path IN (...INTERSECT...)
   Mixed conditions (AND name = 'test') are preserved correctly.

Both use INTERSECT subqueries which are more flexible than an EXISTS
approach (no hardcoded table reference required).

Adds disableTagAutoDetection setting so advanced users can opt out of
the transparent rewrite and handle the SQL themselves.

Docs updated in query-vault-content.md and faq/understanding-tags.md.

* chore: adding changeset
2026-04-06 12:50:00 +01:00
..
.vitepress feat: add JSONL/NDJSON file format support with sidebar preview (#203) 2026-04-06 12:36:50 +01:00
charts chore: fixing documentation pages 2025-06-04 16:21:29 +01:00
contributing Migrating SQL Engine to wa-sqlite (#193) 2026-03-22 18:01:03 +00:00
data-sources feat: add JSONL/NDJSON file format support with sidebar preview (#203) 2026-04-06 12:36:50 +01:00
faq feat: add TAGS() macro and auto-detection for multi-tag AND queries (#202) 2026-04-06 12:50:00 +01:00
langing-page docs: adding landing page with some extra informations 2025-02-04 14:05:58 +00:00
plugins/ohm-plugin chore: fixing docs and upgrading to the lastest version (#187) 2025-08-15 15:11:39 +01:00
public docs: moved transactions file to appropriate place 2025-02-04 20:02:30 +00:00
renderers docs: adding syntax highlighting to the documentation 2025-03-19 11:35:38 +00:00
changelog.md version: upgrade to 0.17.0 2025-01-20 13:12:17 +00:00
changing-render-method.md chore: adding docs 2024-11-24 16:14:36 +00:00
comments.md docs: adding documentation and bumping version 2025-02-17 10:26:26 +00:00
csv-viewer.md chore: adding docs 2024-11-24 16:14:36 +00:00
csv-viewer_code-gen.png chore: adding docs 2024-11-24 16:14:36 +00:00
csv_viewer_add.png chore: adding docs 2024-11-24 16:14:36 +00:00
csv_viewer_preview.png chore: adding docs 2024-11-24 16:14:36 +00:00
define-column-types.md chore: fixing docs 2025-05-16 23:41:18 +01:00
demo-vault.md docs: updating docs based on feedback 2025-01-15 14:30:09 +00:00
explain.png docs: updated documentation 2025-02-04 14:28:24 +00:00
future-plans.md added docs, testing observers 2024-05-01 22:54:41 +01:00
index.md docs: adding syntax highlighting to the documentation 2025-03-19 11:35:38 +00:00
inline-block.png docs: adding documentation for inline blocks 2025-01-10 11:15:07 +00:00
inline-codeblocks.md docs: adding documentation for inline blocks 2025-01-10 11:15:07 +00:00
links-and-images-advanced.png chore: adding docs 2024-09-03 20:39:18 +01:00
links-and-images.md feat: added option to display interactive checkboxes in tasks table 2025-03-21 16:50:03 +00:00
links.png chore: adding docs 2024-09-03 20:39:18 +01:00
query-configuration.md docs: updated documentation 2025-02-04 14:28:24 +00:00
query-markdown-tables.md feat: Markdown tables can now refer to named headers and other files 2025-03-22 18:36:40 +00:00
query-vault-content.md feat: add TAGS() macro and auto-detection for multi-tag AND queries (#202) 2026-04-06 12:50:00 +01:00
quick-start.md fixing documentation 2024-05-05 22:40:58 +01:00
renderer_grid.png chore: adding docs 2024-11-24 16:14:36 +00:00
renderer_grid_advanced.png chore: adding docs 2024-11-24 16:14:36 +00:00
renderer_markdown.png chore: adding docs 2024-11-24 16:14:36 +00:00
renderer_table.png chore: adding docs 2024-11-24 16:14:36 +00:00
setting-column-type.png chore: fixing docs 2025-05-16 23:41:18 +01:00
troubleshooting.md chore: fixing library after reviews 2024-05-12 20:01:30 +01:00
using-properties.md feat: adding basename and parent SQL variables 2025-03-27 12:19:59 +00:00