This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: db interface (was Re: Scheme is too complicated)


Craig Brozefsky <craig@onshore.com> writes:

| Actually, it would seem that sql generation is a almost a must, or at
| least some shortcuts should be provides so that either:
| 
| (find-if (< "age" 10) db-table)  ;generate sql from the scheme like
| 				 ;second argument
| 
| (find-if "age < 10" db-table)	 ; just use the string as an sql
| 				 ; fragment for qualifiying
| 				 ; it owuld make
| 				 ; select from table where age < 10;
| 				 ; or something to that effect.

I would not prefer a wrapper around SQL.  That has the following
disadvantages:

  - This is a mapping from a functional to a declarative
    language.  This job is complicated and probably impossible.
  - Someone must write it.
  - Everybody must learn it.
  - It makes it probably impossible to use some DB special features.

And now the advantages:

  - ?

-- 
/* In the beginning was the Word: */
typedef long SCM;