Re:PGX: Write Postgres extensions in Rust instead of C
by tcyrus on Monday July 13, 2020 @04:13PM
(#23825092)
Is there any way to make custom types using pgx?
[ Parent
| on HN ]
Re:PGX: Write Postgres extensions in Rust instead of C
by zombodb on Monday July 13, 2020 @04:20PM
(#23825169)
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.