mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 19:41:37 +08:00
Add since
and note
for all deprecation tags.
This commit is contained in:
parent
f817ec86bc
commit
7c0eba0475
@ -6,7 +6,7 @@ use libc::c_int;
|
||||
use {ffi, errmsg_to_string};
|
||||
|
||||
/// Old name for `Error`. `SqliteError` is deprecated.
|
||||
#[deprecated]
|
||||
#[deprecated(since = "0.6.0", note = "Use Error instead")]
|
||||
pub type SqliteError = Error;
|
||||
|
||||
/// Enum listing possible errors from rusqlite.
|
||||
|
14
src/lib.rs
14
src/lib.rs
@ -105,7 +105,7 @@ mod raw_statement;
|
||||
const STATEMENT_CACHE_DEFAULT_CAPACITY: usize = 16;
|
||||
|
||||
/// Old name for `Result`. `SqliteResult` is deprecated.
|
||||
#[deprecated]
|
||||
#[deprecated(since = "0.6.0", note = "Use Result instead")]
|
||||
pub type SqliteResult<T> = Result<T>;
|
||||
|
||||
/// A typedef of the result returned by many methods.
|
||||
@ -152,7 +152,7 @@ impl<'a> DatabaseName<'a> {
|
||||
}
|
||||
|
||||
/// Old name for `Connection`. `SqliteConnection` is deprecated.
|
||||
#[deprecated]
|
||||
#[deprecated(since = "0.6.0", note = "Use Connection instead")]
|
||||
pub type SqliteConnection = Connection;
|
||||
|
||||
/// A connection to a SQLite database.
|
||||
@ -369,7 +369,7 @@ impl Connection {
|
||||
///
|
||||
/// This method should be considered deprecated. Use `query_row` instead, which now
|
||||
/// does exactly the same thing.
|
||||
#[deprecated]
|
||||
#[deprecated(since = "0.1.0", note = "Use query_row instead")]
|
||||
pub fn query_row_safe<T, F>(&self, sql: &str, params: &[&ToSql], f: F) -> Result<T>
|
||||
where F: FnOnce(Row) -> T
|
||||
{
|
||||
@ -510,7 +510,7 @@ struct InnerConnection {
|
||||
}
|
||||
|
||||
/// Old name for `OpenFlags`. `SqliteOpenFlags` is deprecated.
|
||||
#[deprecated]
|
||||
#[deprecated(since = "0.6.0", note = "Use OpenFlags instead")]
|
||||
pub type SqliteOpenFlags = OpenFlags;
|
||||
|
||||
bitflags! {
|
||||
@ -682,7 +682,7 @@ impl Drop for InnerConnection {
|
||||
}
|
||||
|
||||
/// Old name for `Statement`. `SqliteStatement` is deprecated.
|
||||
#[deprecated]
|
||||
#[deprecated(since = "0.6.0", note = "Use Statement instead")]
|
||||
pub type SqliteStatement<'conn> = Statement<'conn>;
|
||||
|
||||
/// A prepared statement.
|
||||
@ -972,7 +972,7 @@ impl<'stmt, T, E, F> Iterator for AndThenRows<'stmt, F>
|
||||
}
|
||||
|
||||
/// Old name for `Rows`. `SqliteRows` is deprecated.
|
||||
#[deprecated]
|
||||
#[deprecated(since = "0.6.0", note = "Use Rows instead")]
|
||||
pub type SqliteRows<'stmt> = Rows<'stmt>;
|
||||
|
||||
/// An handle for the resulting rows of a query.
|
||||
@ -1037,7 +1037,7 @@ impl<'stmt> Drop for Rows<'stmt> {
|
||||
}
|
||||
|
||||
/// Old name for `Row`. `SqliteRow` is deprecated.
|
||||
#[deprecated]
|
||||
#[deprecated(since = "0.6.0", note = "Use Row instead")]
|
||||
pub type SqliteRow<'a, 'stmt> = Row<'a, 'stmt>;
|
||||
|
||||
/// A single result row of a query.
|
||||
|
@ -1,7 +1,7 @@
|
||||
use {Result, Connection};
|
||||
|
||||
/// Old name for `LoadExtensionGuard`. `SqliteLoadExtensionGuard` is deprecated.
|
||||
#[deprecated]
|
||||
#[deprecated(since = "0.6.0", note = "Use LoadExtensionGuard instead")]
|
||||
pub type SqliteLoadExtensionGuard<'conn> = LoadExtensionGuard<'conn>;
|
||||
|
||||
/// RAII guard temporarily enabling SQLite extensions to be loaded.
|
||||
|
@ -2,7 +2,7 @@ use std::ops::Deref;
|
||||
use {Result, Connection};
|
||||
|
||||
/// Old name for `TransactionBehavior`. `SqliteTransactionBehavior` is deprecated.
|
||||
#[deprecated]
|
||||
#[deprecated(since = "0.6.0", note = "Use TransactionBehavior instead")]
|
||||
pub type SqliteTransactionBehavior = TransactionBehavior;
|
||||
|
||||
/// Options for transaction behavior. See [BEGIN
|
||||
@ -29,7 +29,7 @@ pub enum DropBehavior {
|
||||
}
|
||||
|
||||
/// Old name for `Transaction`. `SqliteTransaction` is deprecated.
|
||||
#[deprecated]
|
||||
#[deprecated(since = "0.6.0", note = "Use Transaction instead")]
|
||||
pub type SqliteTransaction<'conn> = Transaction<'conn>;
|
||||
|
||||
/// Represents a transaction on a database connection.
|
||||
|
Loading…
Reference in New Issue
Block a user