Re: TIP#308: Last serial column value generated
- From: Russell Bell <rb@xxxxxxxxxxxxxx>
- Date: Sat, 24 Nov 2007 12:11:11 +1300
Donal K. Fellows wrote:
Darren New wrote:I would think that async queries are likely to be the only part that *really* needs to be in the core. Given how many DB APIs are already out there as loadable modules, I can't imagine what core change you'd need, other than a new channel type if you wanted asynchronous non-blocking database queries. (And I'd still like to see *that* happen!)
Out of scope. Seriously. :-)
Donal.
Async DB queries are a fairly common requirement. I'd like to
improve our application so long-running SQL queries don't tie up
the GUI, and so we could provide a cancel button in some places.
I maintain fbsql, a MySQL TCL extension. My brother wrote it in 2000.
The library is used extensively in our own application (there's about
4600 SQL queries/operations, spread through 180,000 lines of TCL) so
naturally I'm not about to break compatibility, without good reason.
I do intend to add support for async queries when I get the time.
If the TDBC defined an async API I would probably follow it's design.
The fbsql extension is in the public domain. It's MySQL-specific
and likely to remain so. I imagine an implementation of TDBC would be
largely pure TCL, built on top of database-specific C extensions like
fbsql.
Glad to hear row-results as lists will be in TDBC. Generally speaking
the fbsql API takes a pragmatic approach; regular TCL substitution,
lists, default values for NULLs. Prepared statements are a solution
to a problem we don't have (insertion attack) and I like the convenience
of normal TCL substitution, for layering the database-aware code.
Russell
.
- Follow-Ups:
- Re: TIP#308: Last serial column value generated
- From: Darren New
- Re: TIP#308: Last serial column value generated
- References:
- TIP#308 Published: Tcl Database Connectivity (TDBC)
- From: Donal K. Fellows
- TIP#308: Last serial column value generated
- From: kieran
- Re: TIP#308: Last serial column value generated
- From: Kevin Kenny
- Re: TIP#308: Last serial column value generated
- From: Darren New
- Re: TIP#308: Last serial column value generated
- From: Kevin Kenny
- Re: TIP#308: Last serial column value generated
- From: Darren New
- Re: TIP#308: Last serial column value generated
- From: Michael Schlenker
- Re: TIP#308: Last serial column value generated
- From: Donal K. Fellows
- Re: TIP#308: Last serial column value generated
- From: tom.rmadilo
- Re: TIP#308: Last serial column value generated
- From: Darren New
- Re: TIP#308: Last serial column value generated
- From: Donal K. Fellows
- TIP#308 Published: Tcl Database Connectivity (TDBC)
- Prev by Date: Re: tablelist::tablelist: How to apply height or vertical padding to rows.
- Next by Date: TIP #308 - Tcl Database Connectivity - revision 1.7 available
- Previous by thread: Re: TIP#308: Last serial column value generated
- Next by thread: Re: TIP#308: Last serial column value generated
- Index(es):
Relevant Pages
|