pub fn from(table_name: &str) -> SelectBuilderExpand description
Start building a SELECT query beginning with a FROM clause.
Returns a SelectBuilder with the FROM clause already set. Use
SelectBuilder::select_cols() to add columns afterward. This is an alternative
entry point for queries where specifying the table first feels more natural.
ยงExamples
use polyglot_sql::builder::*;
let sql = from("users").select_cols(["id", "name"]).to_sql();
assert_eq!(sql, "SELECT id, name FROM users");