Skip to content

Commit 105b95c

Browse files
committed
Add get crossdb version api
1 parent 49c5436 commit 105b95c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

crossdb

src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ use std::fmt::Display;
3232
use std::num::NonZeroUsize;
3333
mod params;
3434

35+
pub fn version() -> &'static str {
36+
unsafe { CStr::from_ptr(xdb_version()).to_str().unwrap() }
37+
}
38+
3539
#[derive(Debug)]
3640
pub struct Connection {
3741
ptr: *mut xdb_conn_t,

0 commit comments

Comments
 (0)