Two SQL queries in one with UNION

Subscribers:
8,109
Published on ● Video Link: https://www.youtube.com/watch?v=f6CPlzeRR24



Duration: 1:38:36
236 views
10


We figure out how to get the posts, the children, and the counts all in a single query to the database! #rust #sql #postgres

Links

Code: https://github.com/brooks-builds/axum_x_twitter_clone
SQL Select: https://www.postgresql.org/docs/16/sql-select.html







Tags:
rust
helix
rust helix
alacritty
zellij
axum
axum rust
sqlx
sql
sqlx sql
rust sqlx
postgres
postgres sqlx
postgres sql