Path: dp-news.maxwell.syr.edu!spool.maxwell.syr.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnews.google.com!h48g2000cwc.googlegroups.com!not-for-mail
From: "Marshall" <marshall.spight@gmail.com>
Newsgroups: comp.databases.theory
Subject: Re: approaches for embedding a data language in a general purpose language
Date: 10 Oct 2006 08:15:17 -0700
Organization: http://groups.google.com
Lines: 35
Message-ID: <1160493317.689895.82540@h48g2000cwc.googlegroups.com>
References: <1160406756.523915.48510@m73g2000cwd.googlegroups.com>
   <E_LWg.957$P92.491@trndny02>
NNTP-Posting-Host: 24.4.95.46
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1160493321 19138 127.0.0.1 (10 Oct 2006 15:15:21 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 10 Oct 2006 15:15:21 +0000 (UTC)
In-Reply-To: <E_LWg.957$P92.491@trndny02>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: h48g2000cwc.googlegroups.com; posting-host=24.4.95.46;
   posting-account=s2xCFw0AAAD2mIwYYHAqjdsecwG0axmW
Xref: dp-news.maxwell.syr.edu comp.databases.theory:45672

On Oct 10, 5:03 am, "David Cressey" <dcres...@verizon.net> wrote:
> "Marshall" <marshall.spi...@gmail.com> wrote in messagenews:1160406756.523915.48510@m73g2000cwd.googlegroups.com...
>
> > The three main approaches I can think of are:
> > 1) a library that accepts text written in the language as string
> > parameters
> > ex.: JDBC, ODBC
>
> > 2) Code generation
> > ex.: Hibernate, any one of ~1000 O/R mappers
>
> > 3) Direct embedding using a preprocessor
> > ex.: SQL-J, embedded SQL (for C) etc.
>
> > I've used the first two extensively, but never the third one. I've got
> > the nagging suspicion that it's the one I would like the best. (Of
> > course
> > one must immediately suspect grass-is-greener syndrome here.)
>
> But I don't think embedded source necessitates record at a time thinking to
> the extent that you suggest.

Actually, it was my intent to say that code generation and ORM
approaches push the programmer in the direction of record-at-a-time
and that embedded data languages don't, or do so much less.


> Anyway,  if you'd like to hear more of my ramblings on the subject,
> I'm ready.

Let's hear it! I'm all ears.


Marshall

