Just a note that in PG&#x27;OCaml (an OCaml interface to PostgreSQL), you <i>can</i> write:<p><pre><code>    &quot;insert into foo (col1,col2,col3) values ($a, $b, $c)&quot;
</code></pre>
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.<p><a href="http:&#x2F;&#x2F;pgocaml.forge.ocamlcore.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;pgocaml.forge.ocamlcore.org&#x2F;</a>