mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-04-13 15:25:13 +00:00
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:
@@ -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>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user