mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
Add RawStatement::column_type.
This commit is contained in:
parent
1a17d3b117
commit
efc6c89370
@ -20,6 +20,10 @@ impl RawStatement {
|
||||
unsafe { ffi::sqlite3_column_count(self.0) }
|
||||
}
|
||||
|
||||
pub fn column_type(&self, idx: c_int) -> c_int {
|
||||
unsafe { ffi::sqlite3_column_type(self.0, idx) }
|
||||
}
|
||||
|
||||
pub fn column_name(&self, idx: c_int) -> &CStr {
|
||||
unsafe { CStr::from_ptr(ffi::sqlite3_column_name(self.0, idx)) }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user