Re: Standard DBI Proposal
- From: "Donal K. Fellows" <donal.k.fellows@xxxxxxxxxxxxxxxx>
- Date: Mon, 29 Oct 2007 10:32:06 +0000
tom.rmadilo wrote:
Notice the example I gave above. Most of what you do in your example
is also handled completely behind the scenes. In other words, you
define parameters ahead of time, including whether it is required, a
default to use, the type, and for strings a length (because database
chars usually have max lengths). So, on a separate page you define
what a query is and the associated params. Then you can reuse the
query anywhere. Here is the setup page (with still a lot of the magic
hidden behind):
I don't think what you wrote is incompatible with what I wrote. Just so
wildly different as to be irrelevant. :-)
I'm talking about a framework that lets you deal with making SQL queries
(including inserts, updates, deletes, table definitions, etc.) to a
database without having to deal with the low-level nitty-gritty business
of quoting, results management, etc. I'm not talking about connecting
that basic framework to the Web or stuff like that[*]; it was just an
illustrative example to emphasize why leaving the quoting to the
interface layer is better. (Programmers are lazy, and so forget to do
things like quoting. Better to let the mandatory parts take up the slack
so you can slack off! :-)) My explicit goal is to make it so that users
of the database interface get it right because that is the path of least
resistance. Having SQL be just another embedded language is another
explicit goal (just as C is with critcl). But defining what others do
with the DBI is a Non-Goal.
Donal.
[* Ye gods! No! ]
.
- Follow-Ups:
- Re: Standard DBI Proposal
- From: tunity5
- Re: Standard DBI Proposal
- References:
- Standard Database Interface?
- From: tcltkdev
- Re: Standard Database Interface?
- From: Sean Woods
- Re: Standard Database Interface?
- From: tcltkdev
- Re: Standard Database Interface?
- From: Sean Woods
- Re: Standard Database Interface?
- From: thelfter@xxxxxxxxx
- Re: Standard Database Interface?
- From: Sean Woods
- Standard DBI Proposal (was: Re: Standard Database Interface?)
- From: Donal K. Fellows
- Re: Standard DBI Proposal (was: Re: Standard Database Interface?)
- From: Sean Woods
- Re: Standard DBI Proposal
- From: Donal K. Fellows
- Re: Standard DBI Proposal
- From: Darren New
- Re: Standard DBI Proposal
- From: Donal K. Fellows
- Re: Standard DBI Proposal
- From: tom.rmadilo
- Standard Database Interface?
- Prev by Date: Re: How to spawn ssh in new Window?
- Next by Date: GUI with multiple display?
- Previous by thread: Re: Standard DBI Proposal
- Next by thread: Re: Standard DBI Proposal
- Index(es):
Relevant Pages
|