mirror of
				https://github.com/isar/rusqlite.git
				synced 2025-10-31 22:08:55 +08:00 
			
		
		
		
	Merge branch 'master' into rust-1.9-reexported-trait-bugfix
This commit is contained in:
		| @@ -103,6 +103,7 @@ mod raw_statement; | ||||
| const STATEMENT_CACHE_DEFAULT_CAPACITY: usize = 16; | ||||
|  | ||||
| /// Old name for `Result`. `SqliteResult` is 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. | ||||
| @@ -149,6 +150,7 @@ impl<'a> DatabaseName<'a> { | ||||
| } | ||||
|  | ||||
| /// Old name for `Connection`. `SqliteConnection` is deprecated. | ||||
| #[deprecated(since = "0.6.0", note = "Use Connection instead")] | ||||
| pub type SqliteConnection = Connection; | ||||
|  | ||||
| /// A connection to a SQLite database. | ||||
| @@ -365,6 +367,7 @@ impl Connection { | ||||
|     /// | ||||
|     /// This method should be considered deprecated. Use `query_row` instead, which now | ||||
|     /// does exactly the same thing. | ||||
|     #[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 | ||||
|     { | ||||
| @@ -505,6 +508,7 @@ struct InnerConnection { | ||||
| } | ||||
|  | ||||
| /// Old name for `OpenFlags`. `SqliteOpenFlags` is deprecated. | ||||
| #[deprecated(since = "0.6.0", note = "Use OpenFlags instead")] | ||||
| pub type SqliteOpenFlags = OpenFlags; | ||||
|  | ||||
| bitflags! { | ||||
| @@ -676,6 +680,7 @@ impl Drop for InnerConnection { | ||||
| } | ||||
|  | ||||
| /// Old name for `Statement`. `SqliteStatement` is deprecated. | ||||
| #[deprecated(since = "0.6.0", note = "Use Statement instead")] | ||||
| pub type SqliteStatement<'conn> = Statement<'conn>; | ||||
|  | ||||
| /// A prepared statement. | ||||
| @@ -962,6 +967,7 @@ impl<'stmt, T, E, F> Iterator for AndThenRows<'stmt, F> | ||||
| } | ||||
|  | ||||
| /// Old name for `Rows`. `SqliteRows` is 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. | ||||
| @@ -1026,6 +1032,7 @@ impl<'stmt> Drop for Rows<'stmt> { | ||||
| } | ||||
|  | ||||
| /// Old name for `Row`. `SqliteRow` is 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. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user