I’ve been working on this with ludnic (Ludovico Nicotina) · GitHub. It was started simply to allow read/write of parquet files using fortran but later expanded to include all of the api. It got delayed wrapping some of the more difficult c-functions but is useable for basic access and data interaction. Work on it continues. Contributions welcome.
8 Likes
Can you please point out “some of the more difficult c-functions”?
Thanks for asking. I was referring to the table functions that allow writing a function (in fortran) that can be called and applied to data in DuckDB tables - essentially user-defined functions (UDFs). The github repo includes a “tables functions” branch and the issue was raised and discussed here. @ludnic may have more to add.
In particular we are trying to run this unit test: duckdb/test/test_table_f.f90 at table_functions · freevryheid/duckdb · GitHub
Which is meant to translate this test of the C API: duckdb/test/api/capi/capi_table_functions.cpp at v0.8.1 · duckdb/duckdb · GitHub