Skip to content

Commit

Permalink
[README][s]: Add instructions for watching the indexed folder
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedsalem401 committed Mar 25, 2024
1 parent 58e863c commit d15d00a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ Use the npm `mddb` package to index Markdown files into an SQLite database. This
npx mddb ./blog
```

### Watching for Changes

To monitor files for changes and update the database accordingly, simply add the `--watch` flag to the command:
```bash
npx mddb ./blog --watch
```
This command will continuously watch for any modifications in the specified folder (`./blog`), automatically rebuilding the database whenever a change is detected.

### Query your files with SQL...

E.g. get all the files with with tag `a`.
Expand Down

0 comments on commit d15d00a

Please sign in to comment.