8 releases

0.3.1 Mar 25, 2023
0.3.0 Mar 11, 2023
0.2.1 Jul 2, 2022
0.2.0 Apr 10, 2022
0.1.2 Dec 26, 2018
Download history 56/week @ 2023-08-12 40/week @ 2023-08-19 60/week @ 2023-08-26 30/week @ 2023-09-02 44/week @ 2023-09-09 23/week @ 2023-09-16 15/week @ 2023-09-23 25/week @ 2023-09-30 18/week @ 2023-10-07 25/week @ 2023-10-14 43/week @ 2023-10-21 43/week @ 2023-10-28 110/week @ 2023-11-04 72/week @ 2023-11-11 26/week @ 2023-11-18 38/week @ 2023-11-25

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

BSD-3-Clause

17MB
325K SLoC

C 163K SLoC // 0.1% comments C++ 92K SLoC // 0.1% comments SQL 68K 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.3.0 15-4.2.0
0.2.1 13-2.1.0
0.2.0 13-2.1.0
0.1.3 10-1.0.2

Dependencies