mirror of
https://github.com/isar/rusqlite.git
synced 2024-12-02 07:31:36 +08:00
commit
a4c3158b95
1
clippy.toml
Normal file
1
clippy.toml
Normal file
@ -0,0 +1 @@
|
|||||||
|
doc-valid-idents = ["SQLite", "lang_transaction"]
|
@ -34,7 +34,7 @@ impl Connection {
|
|||||||
/// Will return `Err` if `sql` cannot be converted to a C-compatible string or if the
|
/// Will return `Err` if `sql` cannot be converted to a C-compatible string or if the
|
||||||
/// underlying SQLite call fails.
|
/// underlying SQLite call fails.
|
||||||
pub fn prepare_cached<'a>(&'a self, sql: &str) -> Result<CachedStatement<'a>> {
|
pub fn prepare_cached<'a>(&'a self, sql: &str) -> Result<CachedStatement<'a>> {
|
||||||
self.cache.get(&self, sql)
|
self.cache.get(self, sql)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set the maximum number of cached prepared statements this connection will hold.
|
/// Set the maximum number of cached prepared statements this connection will hold.
|
||||||
|
@ -160,8 +160,8 @@ impl error::Error for Error {
|
|||||||
Error::InvalidColumnIndex(_) |
|
Error::InvalidColumnIndex(_) |
|
||||||
Error::InvalidColumnName(_) |
|
Error::InvalidColumnName(_) |
|
||||||
Error::InvalidColumnType |
|
Error::InvalidColumnType |
|
||||||
Error::InvalidPath(_) => None,
|
Error::InvalidPath(_) |
|
||||||
Error::StatementChangedRows(_) => None,
|
Error::StatementChangedRows(_) |
|
||||||
Error::StatementFailedToInsertRow => None,
|
Error::StatementFailedToInsertRow => None,
|
||||||
|
|
||||||
#[cfg(feature = "functions")]
|
#[cfg(feature = "functions")]
|
||||||
|
Loading…
Reference in New Issue
Block a user