Skip to content

Commit

Permalink
add doc by concat
Browse files Browse the repository at this point in the history
Signed-off-by: usamoi <[email protected]>
  • Loading branch information
usamoi committed Feb 12, 2024
1 parent f8b1c1d commit 489c4ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pgrx/src/pg_catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ macro_rules! define_character {
$table:ident, ($column:ident, character { $(($variant:ident, $value:literal))* } $($x:tt)*)
} => {
paste::paste! {
#[doc = concat!("The enum for column ", stringify!($column), " in catalog ", stringify!($table), ".")]
#[non_exhaustive]
#[repr(u8)]
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
Expand Down Expand Up @@ -201,6 +202,7 @@ macro_rules! define_catalog_or_cache {
}
}

#[doc = concat!("The search result for catalog ", stringify!($table), ".")]
pub struct [<$table:camel Search>] {
inner: Option<std::ptr::NonNull<pgrx::pg_sys::HeapTupleData>>,
cache_id: i32,
Expand Down Expand Up @@ -232,6 +234,7 @@ macro_rules! define_catalog_or_cache {
}
}

#[doc = concat!("The search results for catalog ", stringify!($table), ".")]
pub struct [<$table:camel SearchList>] {
inner: std::ptr::NonNull<pgrx::pg_sys::CatCList>,
cache_id: i32,
Expand Down

0 comments on commit 489c4ca

Please sign in to comment.