Skip to content
/ duckdb Public
forked from freevryheid/duckdb

fortran bindings to duckdb c api

License

Notifications You must be signed in to change notification settings

ludnic/duckdb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

duckdb

fortran bindings to duckdb c api

still under development - contributions welcome

Implementation status

  • test_starting_database.cpp
    • Simple In-Memory DB Start Up and Shutdown
    • Multiple In-Memory DB Start Up and Shutdown
  • test_capi.cpp
    • Basic test of C API
    • Test scalar NULL
    • Test scalar string
    • Test boolean
    • Test multiple insert
    • Test various error conditions
    • Test integer columns
    • Test real/double columns
    • Test date columns
    • Test time columns
    • Test blob columns
    • Test boolean columns
    • Test decimal columns
    • Test errors in C API
    • Test C API config
    • Issue #2058: Cleanup after execution of invalid SQL statement causes segmentation fault
    • Decimal -> Double casting issue
  • test_capi_data_chunk.cpp
    • Test table_info incorrect 'is_valid' value for 'dflt_value' column
    • Test Logical Types C API
    • Test DataChunk C API
    • Test DataChunk varchar result fetch in C API
    • Test DataChunk result fetch in C API
    • Test DataChunk populate ListVector in C API
  • capi_table_functions.cpp
    • Test Table Functions C API
    • Test Table Function errors in C API
    • Test Table Function named parameters in C API
  • test_capi_appender.cpp
    • Test appending into DECIMAL in C API
    • Test appender statements in C API
    • Test append timestamp in C API
  • test_capi_arrow.cpp
    • Test arrow in C API
  • test_capi_complex_types.cpp
    • Test decimal types C API
    • Test enum types C API
    • Test list types C API
    • Test struct types C API
  • test_capi_extract.cpp
    • Test extract statements in C API
  • test_capi_pending.cpp
    • Test pending statements in C API
  • test_capi_prepared.cpp
    • Test prepared statements in C API
  • test_capi_replacement_scan.cpp
    • Test replacement scans in C API
    • Test error replacement scan
  • test_capi_streaming.cpp
    • Test streaming results in C API
    • Test other methods on streaming results in C API
  • test_capi_to_decimal.cpp
    • Test CAPI duckdb_decimal_as_properties
  • test_capi_website.cpp
    • Test C API examples from the website

Setup and test

Requires the c library that can be downloaded from https://github.com/duckdb/duckdb/releases. If you're on archlinux you can install the libraries and headers using "yay duckdb-bin", which includes the cli binary.

Minimum Duckdb version required: 0.8

Test with

fpm test

To include this in your own projects, add this dependency to your fpm.toml:

[dependencies]
duckdb.git = "https://github.com/freevryheid/duckdb"

About

fortran bindings to duckdb c api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Fortran 100.0%