Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Back to basics: Writing an application using Go and PostgreSQL. Parent comment
Check out https://github.com/launchbadge/sqlx#sqlx-is-not-an-orm for an alternative approach.
struct Country { country: String, count: i64 } let countries = sqlx::query_as!(Country, "SELECT country, count FROM countries WHERE organization = ?", organization) .fetch_all(&db_pool) .await?;
There are no comments on this comment yet.
Check out https://github.com/launchbadge/sqlx#sqlx-is-not-an-orm for an alternative approach.