1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use std::ffi::CStr;

pub mod ffi;

pub mod appender;
pub mod arrow;
pub mod config;
pub mod connection;
pub mod database;
pub mod statement;
pub mod table_function;
pub mod types;
pub mod value;

pub fn library_version() -> String {
    unsafe {
        let p = CStr::from_ptr(ffi::duckdb_library_version());
        p.to_string_lossy().to_owned().to_string()
    }
}