C language bindings for DataFusion.
Build libdatafusion.so
:
cargo build
C example:
cc \
-o target/debug/sql \
-I datafusion/c/include \
datafusion/c/examples/sql.c \
-L target/debug \
-Wl,--rpath=target/debug \
-ldatafusion
target/debug/sql
Output:
+----------+
| Int64(1) |
+----------+
| 1 |
+----------+
Python example:
LD_LIBRARY_PATH=$PWD/target/debug datafusion/c/examples/sql.py
Output:
+----------+
| Int64(1) |
+----------+
| 1 |
+----------+
Ruby example:
LD_LIBRARY_PATH=$PWD/target/debug datafusion/c/examples/sql.rb
Output:
+----------+
| Int64(1) |
+----------+
| 1 |
+----------+