mirror of
https://github.com/isar/rusqlite.git
synced 2025-01-20 07:10:51 +08:00
Make named_params module private
This commit is contained in:
parent
3b673a74b2
commit
eb7f670ce1
@ -79,7 +79,7 @@ pub use transaction::{SqliteTransactionBehavior,
|
||||
pub mod types;
|
||||
mod transaction;
|
||||
#[cfg(feature = "load_extension")] mod load_extension_guard;
|
||||
#[cfg(feature = "named_params")] pub mod named_params;
|
||||
#[cfg(feature = "named_params")] mod named_params;
|
||||
|
||||
/// A typedef of the result returned by many methods.
|
||||
pub type SqliteResult<T> = Result<T, SqliteError>;
|
||||
|
@ -46,6 +46,8 @@ impl<'conn> SqliteStatement<'conn> {
|
||||
}*/
|
||||
|
||||
/// Return the index of an SQL parameter given its name.
|
||||
///
|
||||
/// ## Failures
|
||||
/// Return None if `name` is invalid (NulError) or if no matching parameter is found.
|
||||
pub fn parameter_index(&self, name: &str) -> Option<i32> {
|
||||
unsafe {
|
||||
|
Loading…
x
Reference in New Issue
Block a user