https://github.com/electric-sql/pg_query_ex
https://github.com/electric-sql/pg_query_ex
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/electric-sql/pg_query_ex
- Owner: electric-sql
- License: apache-2.0
- Created: 2023-04-05T16:41:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-19T13:02:26.000Z (6 months ago)
- Last Synced: 2025-06-19T13:49:55.496Z (6 months ago)
- Language: C
- Size: 6.59 MB
- Stars: 7
- Watchers: 6
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](./LICENSE)
# PgQuery
An Elixir interface to the [lib_pg_query postgres query parser](https://github.com/pganalyze/libpg_query).
```elixir
{:ok, ast} = PgQuery.parse("select * from a_table")
```
## Installation
The package can be installed by adding `pg_query_ex` to your list of
dependencies in `mix.exs`:
```elixir
def deps do
[
{:pg_query_ex, "~> 0.7"}
]
end
```
## License
This Elixir interface is distributed under the terms of the [Apache 2.0 license](./LICENSE).
The codebase also contains a git-subtree snapshot of [lib_pg_query](https://github.com/pganalyze/libpg_query) which is distributed under the [BSD 3-Clause license](https://github.com/pganalyze/libpg_query/blob/15-latest/LICENSE).
## Contributing
See the [Community Guidelines](https://github.com/electric-sql/meta) including the [Guide to Contributing](https://github.com/electric-sql/meta/blob/main/CONTRIBUTING.md) and [Contributor License Agreement](https://github.com/electric-sql/meta/blob/main/CLA.md).