C language bindings for DataFusion.
Install dependencies:
cargo install cargo-c
cargo build
meson setup build .
meson install -C build
See example/sql.c
for C.
$ build/example/sql-c
+----------+
| Int64(1) |
+----------+
| 1 |
+----------+
See example/sql.py
for Python.
$ LD_LIBRARY_PATH=$PWD/build example/sql.py
+----------+
| Int64(1) |
+----------+
| 1 |
+----------+
See example/sql.rb
for Ruby.
$ LD_LIBRARY_PATH=$PWD/build example/sql.rb
+----------+
| Int64(1) |
+----------+
| 1 |
+----------+
See example/sql.vala
for Vala.
You need to add -Dvapi=true
option to meson setup
to enable Vala
support.
$ build/example/sql-vala
+----------+
| Int64(1) |
+----------+
| 1 |
+----------+