Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Florents-Tselai authored Mar 2, 2024
1 parent 5c1db7e commit 5131c38
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,24 @@


**liteJQ** is an SQLite extension, written in C, that brings `jq` support to SQLite.
It uses vanilla `jqlib`.
It uses vanilla `libjq`.

## Installation

```sh
make
```

This produces a `litejq` binary object, which should be loaded in SQLite at runtime.

Verify the installation.

```sh
sqlite3 :memory: <<EOF
.load ./litejq
select jq('{"key": "value"}', '.key')
EOF
```

## Usage

Expand All @@ -16,7 +33,7 @@ SELECT jq(json, jqprog)

### Examples

We'll use the movies dataset as a running example.
We'll use the movie dataset as a running example.
```bash
sqlite3 movies.db < ./data/movies.sql
```
Expand Down Expand Up @@ -107,7 +124,7 @@ from movies
group by jq(d, '.year')
```

## Installation
## Notes Installation

### MacOS

Expand Down

0 comments on commit 5131c38

Please sign in to comment.