News for hackers. Stuff that matters.
Re:What MongoDB got right by rwmj on Friday November 13, 2015 @07:16AM (#10559392)
Just a note that in PG'OCaml (an OCaml interface to PostgreSQL), you can write:

    "insert into foo (col1,col2,col3) values ($a, $b, $c)"
and it creates the safe prepared statement with ? placeholders. At compile time. Type-checked against the database to make sure your program types match your column types.

http://pgocaml.forge.ocamlcore.org/

Re:What MongoDB got right by annnnd on Friday November 13, 2015 @07:52AM (#10559524)
I would be very careful with such SQL statements. I am guessing it relies on some intrinsic fields' order? That could change anytime. Order of fields shouldn't have any impact on you app, but I think in your case it does.
Re:What MongoDB got right by rwmj on Friday November 13, 2015 @08:01AM (#10559566)
The "..." wasn't literal. I have amended the post to make this clear.