#[derive(PostgresEnum)]
{
// Attributes available to this derive:
#[requires]
#[pgrx]
}
Expand description
Generate necessary bindings for using the enum with PostgreSQL.
ⓘ
use pgrx::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize, PostgresEnum)]
enum DogNames {
Nami,
Brandy,
}