|
|
|
|
|
by zombodb
2168 days ago
|
|
Yeah, "rich data types" is a good point. pgx provides a #[derive(PostgresType)] macro that lets you represent any normal Rust struct (that serde_cbor can (de)serialize) as a Postgres type. You write no code. It even generates all the boring SQL boilerplate for you. I plan on putting together an example about this and doing a twitch stream this week to discuss in detail. |
|