cql2 0.5.7

Parse, validate, and convert Common Query Language (CQL2) text and JSON
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
#
# Cargo runner that runs a built binary with the prebuilt libduckdb (fetched via
# DUCKDB_DOWNLOAD_LIB) on the dynamic-library load path. libduckdb-sys does not
# set an rpath for downloaded libraries, so without this the loader could pick up
# a missing or incompatible system libduckdb.
#
# This wraps every test/run binary in the workspace, including crates that don't
# use duckdb, so locating the library must never fail the command: if no download
# is found we simply exec the binary unchanged.

libdir="$(find "${CARGO_TARGET_DIR:-target}/duckdb-download" -name 'libduckdb.so' -printf '%h\n' 2>/dev/null | sort -Vu | tail -n1)"
if [ -n "${libdir}" ]; then
    export LD_LIBRARY_PATH="${libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
fi

exec "$@"