6 releases

0.2.1 Jul 2, 2022
0.2.0 Apr 10, 2022
0.1.3 Apr 25, 2021
0.1.2 Dec 26, 2018
Download history 43/week @ 2022-04-26 37/week @ 2022-05-03 100/week @ 2022-05-10 25/week @ 2022-05-17 40/week @ 2022-05-24 51/week @ 2022-05-31 21/week @ 2022-06-07 14/week @ 2022-06-14 19/week @ 2022-06-21 29/week @ 2022-06-28 57/week @ 2022-07-05 143/week @ 2022-07-12 264/week @ 2022-07-19 32/week @ 2022-07-26 33/week @ 2022-08-02 43/week @ 2022-08-09

383 downloads per month
Used in 3 crates (via squawk-parser)

BSD-3-Clause

15MB
299K SLoC

C 157K SLoC // 0.1% comments C++ 85K SLoC // 0.1% comments SQL 56K SLoC // 0.2% comments Ruby 1.5K SLoC // 0.0% comments Rust 88 SLoC // 0.0% comments

libpg_query-sys

This crate provides FFI bindings to libpg_query.

Building Against the System Library

By default, this library builds against a version of the C library that it has vendored. However, if you set the LIBPG_QUERY_PATH env var when running cargo, it will use this path to find the needed header and library files. Specifically, it will look for $LIBPG_QUERY_PATH/include/pg_query.h and look in $LIBPG_QUERY_PATH/lib for the compiled library.

Version Mapping

This table shows how versions of this crate correspond to libpg_query versions:

Crate Version C Library Version
0.2.0 13-2.1.0
0.1.3 10-1.0.2

Dependencies