Derive Macro pgx_macros::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: