Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #20 from prql/sqlite
Browse files Browse the repository at this point in the history
Fixes the chinook.sqlite file
  • Loading branch information
snth committed Nov 8, 2022
2 parents 35b52da + 768ee3b commit 8fc1dcd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# pq Changelog

## 0.0.13 - 2022-11-08

* Fixed chinook.sqlite file.

## 0.0.12 - 2022-10-24

* Fixed Docker alias command.
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ For example on linux you could download and install `pq` with:
alias pq="docker run --rm -it -v $(pwd):/data -e HOME=/tmp -u $(id -u):$(id -g) ghcr.io/prql/prql-query"
pq --help

Please note that if you want to build the container image yourself with Docker then you will need
at least 10 GB of memory available to the Docker VM, otherwise libduckdb-sys will fail to compile.

### Via Homebrew

brew tap prql/homebrew-prql-query
Expand Down Expand Up @@ -201,14 +204,14 @@ beginning with "duckdb://".
$ pq --database duckdb://examples/chinook/duckdb/chinook.duckdb \
'from albums | join artists [artist_id] | group name (aggregate [num_albums = count]) | sort [-num_albums] | take 10'

### Querying Sqlite databases (WIP)
### Querying Sqlite databases

Sqlite is currently supported through the [sqlite_scanner](https://github.com/duckdblabs/sqlite_scanner)
DuckDB extension. This appears to work for some queries but not for others
so this is currently EXPERIMENTAL.
DuckDB extension. In order to query a SQLite database, a database URI
beginning with "sqlite://" needs to be supplied.

$ pq --database sqlite://examples/chinook/sqlite/chinook.sqlite \
'from albums | select title | take 10'
'from albums | take 10'

### Querying PostgreSQL databases

Expand Down
Binary file modified examples/chinook/sqlite/chinook.sqlite
Binary file not shown.

0 comments on commit 8fc1dcd

Please sign in to comment.