I just wrote a SQL query for the first time in... 7 years?
-
-
Replying to @bitandbang
Some odd negativity in replies here, SQL is good, what
4 replies 0 retweets 2 likes -
Replying to @brianarn @bitandbang
SQL is good. Concatenating strings in leu of a query builder is not. Folks assume the latter means that SQL is never the answer
1 reply 0 retweets 1 like -
-
Replying to @brianarn @bitandbang
Any ORM that provides a query builder should also have a good story for working with raw SQL. I think there's places where both are appropriate personally
1 reply 0 retweets 0 likes
e.g. https://github.com/rust-lang/crates.io/blob/241d8dfcc2cc973e81b7e61d72ebe335e343f28a/src/models/krate_reverse_dependencies.sql … will always make more sense as raw SQL than using a query builder, but https://github.com/rust-lang/crates.io/blob/241d8dfcc2cc973e81b7e61d72ebe335e343f28a/src/controllers/krate/search.rs#L34 … was a nightmare when it was manually concatenating SQL strings.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.