Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Donnype committed Oct 20, 2023
1 parent fc89588 commit 868e9cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ Don't hesitate to add your own examples!
### Using the CLI for querying

This package also comes with an easy CLI tool to query XTDB.
To query XTDB using a plain query you can run
Again, set the `XTDB_URI` variable in your environment first and you will be able to query XTDB as follows:

```bash
$ echo '{:query {:find [(pull ?e [*])] :where [[ ?e :name "fred" ]]}}' | python -m xtdb
[[{"name": "fred", "xt/id": "123"}]]
```

To use a query file the command can be modified to the following:
To use a query from a file, run:

```bash
$ cat query.txt
Expand Down

0 comments on commit 868e9cd

Please sign in to comment.