Two SQL queries in one with UNION
Channel:
Subscribers:
8,109
Published on ● Video Link: https://www.youtube.com/watch?v=f6CPlzeRR24
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
Other Videos By Brooks Builds (brookzerker)
Tags:
rust
helix
rust helix
alacritty
zellij
axum
axum rust
sqlx
sql
sqlx sql
rust sqlx
postgres
postgres sqlx
postgres sql