Hacker GitHub

← All repos

sfackler/rust-postgres-macros

View on GitHub ↗ ★ 152 Rust

Support macros for Rust-Postgres

4 mentions on Hacker News by 4 people: 0 stories, 4 comments · first 2014-10-29 · latest 2020-01-12

Mentions per year 4 mentions · busiest year 2015 (2)
20082026
  1. Reminds me of the !sql in rust-postgres-macros: https://github.com/sfackler/rust-postgres-macros#sql With the difference: it uses the PostgreSQL parser, not a generic SQL parser
    comment by bwblabs · 2020-01-12 · in Catching SQL errors at build time
  2. …this for Postgres: https://github.com/sfackler/rust-postgres is the connection/query/etc part, and https://github.com/sfackler/rust-postgres-macros actually links with the postgres query parser to provide compile-time SQL syntax checking.
  3. There's https://github.com/sfackler/rust-postgres-macros for PostgreSQL.
  4. …be highlighted like Rust: sql!("SELECT * FROM users WHERE name = $1"); is a macro provided by https://github.com/sfackler/rust-postgres-macros , and should be highlighted like SQL, not like a Rust string. sql!("SELECT * FORM users WHERE…
    comment by steveklabnik · 2014-10-29 · in A Quick Intro to Rust Macros