Derive Macro pgx::PostgresEq

source ·
#[derive(PostgresEq)]
{
    // 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, PostgresEnum, PartialEq, Eq, PostgresEq)]
enum DogNames {
    Nami,
    Brandy,
}

Optionally accepts the following attributes: