Update column.rs

Skip serialization of `relation_id` and `relation_attribute_no` so they do not appear in `sqlx-data.json`
This commit is contained in:
Joe Grund
2020-07-07 17:42:31 -04:00
committed by Ryan Leckey
parent 61e4a4f566
commit d58f20f77a

View File

@@ -8,7 +8,9 @@ pub struct PgColumn {
pub(crate) ordinal: usize,
pub(crate) name: UStr,
pub(crate) type_info: PgTypeInfo,
#[cfg_attr(feature = "offline", serde(skip))]
pub(crate) relation_id: Option<i32>,
#[cfg_attr(feature = "offline", serde(skip))]
pub(crate) relation_attribute_no: Option<i16>,
}