mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-22 16:29:20 +08:00
Rustfmt
This commit is contained in:
parent
d2dcc2d987
commit
799b5d3f7b
@ -17,7 +17,9 @@
|
||||
//! [datetime](https://www.sqlite.org/lang_datefunc.html) functions. If you
|
||||
//! want different storage for datetimes, you can use a newtype.
|
||||
//!
|
||||
#![cfg_attr(feature = "time", doc = r##"
|
||||
#![cfg_attr(
|
||||
feature = "time",
|
||||
doc = r##"
|
||||
For example, to store datetimes as `i64`s counting the number of seconds since
|
||||
the Unix epoch:
|
||||
|
||||
@ -42,7 +44,8 @@ impl ToSql for DateTimeSql {
|
||||
}
|
||||
```
|
||||
|
||||
"##)]
|
||||
"##
|
||||
)]
|
||||
//! `ToSql` and `FromSql` are also implemented for `Option<T>` where `T`
|
||||
//! implements `ToSql` or `FromSql` for the cases where you want to know if a
|
||||
//! value was NULL (which gets translated to `None`).
|
||||
|
Loading…
Reference in New Issue
Block a user