mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-22 16:29:20 +08:00
Document that optional()
requires import of rusqlite::OptionalExtension
Document that `optional()` requires import of `rusqlite::OptionalExtension`.
This commit is contained in:
parent
248db0350d
commit
7beba0c6eb
@ -438,7 +438,8 @@ impl Statement<'_> {
|
||||
///
|
||||
/// 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>>`.
|
||||
/// this to get a `Result<Option<T>>` (requires that the trait `rusqlite::OptionalExtension`
|
||||
/// is imported).
|
||||
///
|
||||
/// # Failure
|
||||
///
|
||||
@ -464,7 +465,8 @@ impl Statement<'_> {
|
||||
///
|
||||
/// 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>>`.
|
||||
/// this to get a `Result<Option<T>>` (requires that the trait `rusqlite::OptionalExtension`
|
||||
/// is imported).
|
||||
///
|
||||
/// # Failure
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user