Re:Syntax extensions and regular expressions for Rust
by eridius on Monday April 28, 2014 @02:15PM
(#7661838)
You could use macros to perform compile-time checking of SQL query strings (and checking of any arguments bound to the query, as long as they're bound immediately instead of being bound later).
(Edit: after a quick check this use case seems to be already covered by #[deriving(Encodable, Decodable)] in rust.)