caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Connecting to Mysql using Ocaml
@ 2009-08-17 21:04 tumenjargal tsagaan
  2009-08-17 21:18 ` [Caml-list] " Dave Benjamin
  2009-08-17 21:31 ` Christophe TROESTLER
  0 siblings, 2 replies; 3+ messages in thread
From: tumenjargal tsagaan @ 2009-08-17 21:04 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 265 bytes --]

Hi all,

has someone with experience tell me how to access mysql database using ocaml?
Any help would be appreciated.

It would be great when posting a small snippet for connecting a mysql database and inserting something.

Thank you.

Tumee.



      

[-- Attachment #2: Type: text/html, Size: 402 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Connecting to Mysql using Ocaml
  2009-08-17 21:04 Connecting to Mysql using Ocaml tumenjargal tsagaan
@ 2009-08-17 21:18 ` Dave Benjamin
  2009-08-17 21:31 ` Christophe TROESTLER
  1 sibling, 0 replies; 3+ messages in thread
From: Dave Benjamin @ 2009-08-17 21:18 UTC (permalink / raw)
  To: tumenjargal tsagaan; +Cc: caml-list

On Mon, 17 Aug 2009, tumenjargal tsagaan wrote:

> has someone with experience tell me how to access mysql database using
> ocaml?
> Any help would be appreciated.
> 
> It would be great when posting a small snippet for connecting a mysql
> database and inserting something.

See the second half of this example (dbusers):
http://pleac.sourceforge.net/pleac_ocaml/dbaccess.html#AEN784

You can get the MySQL bindings here:
http://raevnos.pennmush.org/code/ocaml-mysql/

Or, if you're using Debian or Fedora, there should be a package available.

-- 
.. Dave Benjamin - Software Developer - Phoenix, Arizona
.. http://ramenlabs.com | http://twitter.com/ramenlabs


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Connecting to Mysql using Ocaml
  2009-08-17 21:04 Connecting to Mysql using Ocaml tumenjargal tsagaan
  2009-08-17 21:18 ` [Caml-list] " Dave Benjamin
@ 2009-08-17 21:31 ` Christophe TROESTLER
  1 sibling, 0 replies; 3+ messages in thread
From: Christophe TROESTLER @ 2009-08-17 21:31 UTC (permalink / raw)
  To: delgiika; +Cc: caml-list

On Mon, 17 Aug 2009 21:04:46 +0000, tumenjargal tsagaan wrote:
> 
> has someone with experience tell me how to access mysql database
> using ocaml?  Any help would be appreciated.

Google is your friend: for "mysql ocaml" it reports as its first page
http://raevnos.pennmush.org/code/ocaml-mysql/

> It would be great when posting a small snippet for connecting a
> mysql database and inserting something.

You will hopefully be fully satisfied that there is a demo in the
tarball then!

Cheers,
C.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-17 21:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-17 21:04 Connecting to Mysql using Ocaml tumenjargal tsagaan
2009-08-17 21:18 ` [Caml-list] " Dave Benjamin
2009-08-17 21:31 ` Christophe TROESTLER

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).