From: Mail Sieve Subsystem <postmaster@messagingengine.com>
To: <caml-list-admin@yquem.inria.fr>
Subject: Automatically rejected mail
Date: Tue, 19 Jul 2005 09:08:24 -0400 [thread overview]
Message-ID: <cmu-sieve-13167-1121778504-3@server4.messagingengine.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 151 bytes --]
Your message was automatically rejected by Sieve, a mail
filtering language.
The following reason was given:
Message bounced by server content filter
[-- Attachment #2: Type: message/disposition-notification, Size: 242 bytes --]
[-- Attachment #3: Type: message/rfc822, Size: 7423 bytes --]
From: jean-claude <caml.4.jean.claude.bourut@neverbox.com>
To: caml-list@inria.fr
Subject: [Caml-list] Re: Idea for another type safe PostgreSQL interface
Date: Tue, 19 Jul 2005 11:55:26 +0000 (UTC)
Message-ID: <loom.20050719T132835-581@post.gmane.org>
Alex Baretta <alex <at> barettadeit.com> writes:
>
> Richard Jones wrote:
> > [I just throwing this idea out there to see if people find it
> > interesting, or want to shoot it down ... There're only fragments of
> > working code at the moment]
> >
> > I'm thinking about a type safe interface to PostgreSQL. One such
> > interface at the moment is in Xcaml, but it only supports a very small
> > subset of SQL, and I like to use complex SQL. It seems that there is
> > a way to support the whole of PostgreSQL's language from within OCaml
> > programs, in a type safe way.
>
> Every once in a while we extend the Embedded SQL with a new feature, but
> we never planned to support all of PostgreSQL. In fact, what we want to
> have is abstraction over the actual DB implementation.
>
> > The general plan would be to have a camlp4 extension which would use
> > Postgres's new "PREPARE" feature to actually prepare the statements,
> > and Postgres's other new feature, "Describe Statement", to pull out
> > the parameter types and result types from the prepared statement.
> > This allows the camlp4 extension to replace the statement string with
> > a type safe expression, and allow type inference to find mismatches.
> > How a typical program would look is shown at the end of this message.
>
Back in the pre-internet era, Dec implemented a DBMS (Rdb I think), a C++
compiler and a "compile time" coherency check between C++ and Rdb.
Their implementation had the following features
-1) C++ compilation would read Rdb schema,
-2) There was a strong coupling between database schema and C++ program.
-3) Moving from test environment to production lead us to rebuild the code,
(That’s silly but I could not find a way around it).
We just gave up using it.
> I really think XDBS is the the way to go. You define the schema in a
> high level language (OO-Entity-Relationship modeling), supporting lower
> level refinements (logical, physical and virtual schema refinements) and
> compiling to Ocaml and SQL-DDL. This way, the type safety can be
> established at compile time without need for a database connection.
> Also, the type safety does not depend on a specific implementation of
> SQL, which is usually desireable.
>
> Alex
>
Nb: I have never worked with PostgreSQL, BUT, with Oracle, Informix, DB2,
sybase, mssql, the full name of a table ( databasename.login.table ) only binds
to an entry inside a system catalog.
If your application uses several logins, then, checking program structures
against database schema can not really occur before login time.
If the goal is only a sanity check, then using any reference definition can
help, but I don't think it will replase the run time check.
Regards,
_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs
next reply other threads:[~2005-07-19 14:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-19 13:08 Mail Sieve Subsystem [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-07-19 13:08 Mail Sieve Subsystem
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=cmu-sieve-13167-1121778504-3@server4.messagingengine.com \
--to=postmaster@messagingengine.com \
--cc=caml-list-admin@yquem.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