mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 09:09:19 +08:00
Improve doc
This commit is contained in:
parent
e0db3d16dd
commit
5c7104c12f
@ -392,6 +392,9 @@ impl Connection {
|
|||||||
/// If the query returns more than one row, all rows except the first are
|
/// If the query returns more than one row, all rows except the first are
|
||||||
/// ignored.
|
/// ignored.
|
||||||
///
|
///
|
||||||
|
/// Returns `Err(QueryReturnedNoRows)` if no results are returned. If the query truly is optional,
|
||||||
|
/// you can call `.optional()` on the result of this to get a `Result<Option<T>>`.
|
||||||
|
///
|
||||||
/// # Failure
|
/// # Failure
|
||||||
///
|
///
|
||||||
/// Will return `Err` if `sql` cannot be converted to a C-compatible string
|
/// Will return `Err` if `sql` cannot be converted to a C-compatible string
|
||||||
@ -412,6 +415,9 @@ impl Connection {
|
|||||||
/// If the query returns more than one row, all rows except the first are
|
/// If the query returns more than one row, all rows except the first are
|
||||||
/// ignored.
|
/// ignored.
|
||||||
///
|
///
|
||||||
|
/// Returns `Err(QueryReturnedNoRows)` if no results are returned. If the query truly is optional,
|
||||||
|
/// you can call `.optional()` on the result of this to get a `Result<Option<T>>`.
|
||||||
|
///
|
||||||
/// # Failure
|
/// # Failure
|
||||||
///
|
///
|
||||||
/// Will return `Err` if `sql` cannot be converted to a C-compatible string
|
/// Will return `Err` if `sql` cannot be converted to a C-compatible string
|
||||||
|
@ -377,6 +377,9 @@ impl<'conn> Statement<'conn> {
|
|||||||
/// If the query returns more than one row, all rows except the first are
|
/// If the query returns more than one row, all rows except the first are
|
||||||
/// ignored.
|
/// ignored.
|
||||||
///
|
///
|
||||||
|
/// Returns `Err(QueryReturnedNoRows)` if no results are returned. If the query truly is optional,
|
||||||
|
/// you can call `.optional()` on the result of this to get a `Result<Option<T>>`.
|
||||||
|
///
|
||||||
/// # Failure
|
/// # Failure
|
||||||
///
|
///
|
||||||
/// Will return `Err` if the underlying SQLite call fails.
|
/// Will return `Err` if the underlying SQLite call fails.
|
||||||
|
Loading…
Reference in New Issue
Block a user