Skip to content

Commit de7ff9b

Browse files
committed
Add docstring on FromSql part of Interval
1 parent db6730c commit de7ff9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

diesel/src/sql_types/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,13 @@ pub struct Date;
299299
///
300300
/// - [`PgInterval`] which can be constructed using [`IntervalDsl`]
301301
/// - [`chrono::Duration`][Duration] with `feature = "chrono"`
302+
/// (There might be some information loss due to special behavior on `month` property;
303+
/// Please read official documentation of [PostgreSQL Interval].)
302304
///
303305
/// [`PgInterval`]: ../pg/data_types/struct.PgInterval.html
304306
/// [`IntervalDsl`]: ../pg/expression/extensions/trait.IntervalDsl.html
305307
/// [Duration]: https://docs.rs/chrono/*/chrono/type.Duration.html
308+
/// [PostgreSQL Interval]: https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-INTERVAL-INPUT
306309
#[derive(Debug, Clone, Copy, Default, QueryId, SqlType)]
307310
#[diesel(postgres_type(oid = 1186, array_oid = 1187))]
308311
pub struct Interval;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy