liveBook · Manning

SQL

As explained in Rust Servers, Services, and Apps

SQL is a declarative language for defining, querying, modifying, and controlling data in relational databases.

SQL defines a PostgreSQL table and seed rows, then selects course records. A Rust program uses sqlx to submit the query and display results in a terminal. section 4.2.2

How Rust Servers, Services, and Apps covers it

How deep it goes
Builds from database creation and table definition to seeded rows and a parameterized sqlx query, without developing broader SQL operations.
Examples
Demonstrates creating and seeding a course table, then selecting its records in psql and Rust.
What it assumes
Sets up PostgreSQL, credentials, a table, and a Rust data model before querying rather than assuming database connectivity.
What you can do after
Apply SQL through sqlx to query PostgreSQL and display returned course rows in a terminal.
How it connects
Connects SQL with PostgreSQL, Rust, sqlx, database tables, and asynchronous connection pools.

Also explained in

Compare how 25 books explain SQL →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Rust Servers, Services, and Apps. The section links point to the parts of the book it draws on.