From: Maxence Guesdon <maxence.guesdon@inria.fr>
To: caml-list@inria.fr, erik@aarg.net
Subject: [Caml-list] OCamlODBC : help wanted
Date: Wed, 9 Oct 2002 16:34:14 +0200 [thread overview]
Message-ID: <20021009163414.56b3875a.maxence.guesdon@inria.fr> (raw)
Hi,
Erik Arneson would like to use bound parameters in ODBC queries.
We would like to have something like :
let db = new Ocamlodbc.data_base "foo" "bar" "baz" in
let query = db#prepare "INSERT INTO mytable VALUES (?, ?)" in
try
db#begin_transaction;
List.iter (fun x -> query#execute (nth x 1) (nth x 2))
[ [ "x"; "y" ]; [ "a"; "b" ] ]
db#commit
with SQL_Error(s) -> db#rollback
;;
The problem is we're both quite busy at the moment.
If you know about ODBC and OCaml and you don't know what to code these days, may be you can have a look at it.
thanks,
OCamlODBC : http://www.maxence-g.net/Tools/tools.html
--
Maxence Guesdon
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
reply other threads:[~2002-10-09 14:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021009163414.56b3875a.maxence.guesdon@inria.fr \
--to=maxence.guesdon@inria.fr \
--cc=caml-list@inria.fr \
--cc=erik@aarg.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox