[sqlite] aggregate funtion in the TCL binding

2005-08-25 Thread Ramon Ribó
Hello, It also looks to my that the interface should be something as as simple as: db aggregate_function step_func final_func > But it seemed to me that all it should take is to create a normal TCL > function to be called for each row selected (say, to compute the sums > and

Re: [sqlite] aggregate funtion in the TCL binding

2005-08-24 Thread Gerry Snyder
D. Richard Hipp wrote: On Thu, 2005-08-25 at 00:18 +0200, Ramon Ribó wrote: Is there a way to define an aggregate function in the TCL binding? No. Not at this time. I think this topic came up a while ago, when simple functions were added to the TCL bindings (or at least when I became

Re: [sqlite] aggregate funtion in the TCL binding

2005-08-24 Thread D. Richard Hipp
On Thu, 2005-08-25 at 00:18 +0200, Ramon Ribó wrote: > > Is there a way to define an aggregate function in the TCL binding? No. Not at this time. > > In case it is not there, would it be a nice addition for symmetry with > the C-C++ interface? That depends. The interface is likely to

[sqlite] aggregate funtion in the TCL binding

2005-08-24 Thread Ramon Ribó
Hello, Is there a way to define an aggregate function in the TCL binding? In case it is not there, would it be a nice addition for symmetry with the C-C++ interface? Also, I briefly reviewed the TCL binding C code and it looks like the "function" interface does not take advantage of