Derive Macro pgx::PostgresOrd
source · [−]#[derive(PostgresOrd)]
{
// Attributes available to this derive:
#[pgx]
}
Expand description
Generate necessary code using the type in operators like >, <, <=, and >=.
ⓘ
use pgx::*;
use serde::{Deserialize, Serialize};
#[derive(
Debug, Serialize, Deserialize, PartialEq, Eq,
PartialOrd, Ord, PostgresEnum, PostgresOrd
)]
enum DogNames {
Nami,
Brandy,
}Optionally accepts the following attributes:
sql: Same arguments as#[pgx(sql = ..)].