mirror of
				https://github.com/isar/rusqlite.git
				synced 2025-10-31 13:58:55 +08:00 
			
		
		
		
	Column is used only with column_decltype feature (#1385)
This commit is contained in:
		| @@ -3,12 +3,16 @@ use std::str; | ||||
| use crate::{Error, Result, Statement}; | ||||
|  | ||||
| /// Information about a column of a SQLite query. | ||||
| #[cfg(feature = "column_decltype")] | ||||
| #[cfg_attr(docsrs, doc(cfg(feature = "column_decltype")))] | ||||
| #[derive(Debug)] | ||||
| pub struct Column<'stmt> { | ||||
|     name: &'stmt str, | ||||
|     decl_type: Option<&'stmt str>, | ||||
| } | ||||
|  | ||||
| #[cfg(feature = "column_decltype")] | ||||
| #[cfg_attr(docsrs, doc(cfg(feature = "column_decltype")))] | ||||
| impl Column<'_> { | ||||
|     /// Returns the name of the column. | ||||
|     #[inline] | ||||
|   | ||||
| @@ -74,6 +74,7 @@ use crate::raw_statement::RawStatement; | ||||
| use crate::types::ValueRef; | ||||
|  | ||||
| pub use crate::cache::CachedStatement; | ||||
| #[cfg(feature = "column_decltype")] | ||||
| pub use crate::column::Column; | ||||
| pub use crate::error::{to_sqlite_error, Error}; | ||||
| pub use crate::ffi::ErrorCode; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user