mirror of
https://github.com/h-sphere/sql-seal.git
synced 2026-07-22 05:12:18 +00:00
docs: adding documentation for inline blocks
This commit is contained in:
parent
3c833abbff
commit
470fcb42fc
3 changed files with 20 additions and 1 deletions
|
|
@ -20,6 +20,7 @@ export default defineConfig({
|
|||
{ text: 'Changing Render Methods', link: '/changing-render-method'},
|
||||
{ text: 'Using properties', link: '/using-properties' },
|
||||
{ text: 'Query Vault Content', link: '/query-vault-content' },
|
||||
{ text: 'Inline codeblocks', link: '/inline-codeblocks' },
|
||||
{ text: 'Links and Images', link: '/links-and-images' },
|
||||
{ text: 'CSV Viewer', link: '/csv-viewer'},
|
||||
{ text: 'Troubleshooting', link: '/troubleshooting' },
|
||||
|
|
|
|||
BIN
docs/inline-block.png
Normal file
BIN
docs/inline-block.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
|
|
@ -1,2 +1,20 @@
|
|||
# Inline Codeblocks
|
||||
SQLSeal supports inline codeblocks. This allows you to put data inline in your note as if it's part of the sentence.
|
||||
SQLSeal supports inline codeblocks. This allows you to put data inline with your text so you can use results of your queries as part of the sentence.
|
||||
|
||||

|
||||
|
||||
## Creating inline block
|
||||
Inline block should start with `S>` to indicate you want to create SQLSeal query. Then it should contain SQL query returning single value.
|
||||
|
||||
## Example queries
|
||||
|
||||
Here are example queries operating on files in your vault:
|
||||
|
||||
### Number of files in your vault
|
||||
`S> SELECT COUNT(*) FROM files`
|
||||
|
||||
### Number of tags in your vault
|
||||
`S> SELECT COUNT(DISTINCT tag) FROM tags`
|
||||
|
||||
### Completed tasks accross your vault
|
||||
`S> SELECT COUNT(*) FROM tasks WHERE completed=1`
|
||||
Loading…
Reference in a new issue