Hacker News new | ask | show | jobs
by tcyrus 2163 days ago
Is there any way to make custom types using pgx?
1 comments

Yes there is. It's not documented/example'd yet tho.

There's a derive macro called #[derive(PostgresType)]. Combine that with serde's Serialize, Deserialize, and you're gtg.

I'm going to be working on more docs and twitch streams over this week.