caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Thomas Gazagnaire <ocaml@gazagnaire.com>
To: caml-list@inria.fr
Subject: [ANN] ORM-0.5 and Dyntype-0.7
Date: Thu, 18 Feb 2010 12:20:01 +0000	[thread overview]
Message-ID: <9722eaea1002180420j990becdy9262cf3101d9df97@mail.gmail.com> (raw)

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

We are pleased to announce a beta release of an Object-Relational Mapper
(ORM) library for OCaml.  It is implemented as a type-conv syntax extension
which auto-generates database save and query functions based on type
declarations.

You can obtain the ORM from Github at http://github.com/mirage/orm , and
GODI packages and MacPorts will be available shortly.  Please report issues
to mirage@recoil.org or use the Github issue tracker.

Some example code is:

type t = { foo: string; bar: int } with orm
let db = t_init "my.db" in
t_save { foo="t1"; bar=1 } db;
t_get ~foo:(`Contains "t") db

The only backend supported currently in SQLite, but we are working on some
alternative non-SQL backends (such as Tokyo Cabinet and a git-based version
controlled database).  This beta release is a preview to get feedback and
testing from a wider audience.

The Dyntype library provides a convenient way of manipulating types and
values at run-time without having to dive into camlp4.  It is described more
fully in a WGT2010 paper at:
http://www.cl.cam.ac.uk/research/srg/netos/papers/2010-dyntype-wgt.pdf

Thomas Gazagnaire
Anil Madhavapeddy

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

             reply	other threads:[~2010-02-18 12:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-18 12:20 Thomas Gazagnaire [this message]
2010-02-18 18:13 ` Thomas Gazagnaire

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=9722eaea1002180420j990becdy9262cf3101d9df97@mail.gmail.com \
    --to=ocaml@gazagnaire.com \
    --cc=caml-list@inria.fr \
    /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;
as well as URLs for NNTP newsgroup(s).