From: brogoff <brogoff@speakeasy.net>
To: "Quinn, Chris" <chris.quinn@eds.com>
Cc: caml-list@inria.fr
Subject: RE: [Caml-list] Type-safe interface to Postgres's SQL
Date: Tue, 31 Jan 2006 09:51:02 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.58.0601310929430.26466@shell2.speakeasy.net> (raw)
In-Reply-To: <4DB758040F42334883C0350EB806CA73A598AB@ukspm207.emea.corp.eds.com>
On Tue, 31 Jan 2006, Quinn, Chris wrote:
> A few years ago I implemented a type safe interface to db2 (odbc
> compliant).
> My approach was to extend the caml compiler with a Type.typeof : 'a ->
> typeinfo function
> which marshalled the internal type info into a string.
> This is then used at runtime to compare with the database's notion of
> what a query produces
> (the check is performed only once during the execution life of the
> program, thereby minimising cost)
> So any mismatch with the db schema is caught (as long as that bit of the
> code is actually run!)
Sounds like GCaml (http://www.y1.is.s.u-tokyo.ac.jp/~furuse/gcaml) would have
allowed you to express this directly. The better typed marshalling has been
on my wishlist for a while
-- Brian
next prev parent reply other threads:[~2006-01-31 17:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-31 16:43 Quinn, Chris
2006-01-31 17:51 ` brogoff [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-01-31 14:07 Richard Jones
2006-02-18 16:01 ` [Caml-list] " Richard Jones
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=Pine.LNX.4.58.0601310929430.26466@shell2.speakeasy.net \
--to=brogoff@speakeasy.net \
--cc=caml-list@inria.fr \
--cc=chris.quinn@eds.com \
/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