Re: [sqlite] maintaining order state for custom functions in sqlite: is it possible to insure that callback gets records in "ORDER BY" order?

2014-10-10 Thread Clemens Ladisch
john soprych wrote: > Is there a good way to create functions in sqlite where you can insure that > your function callback will be called in order? No. Your best bet is writing the query in such a way that the function is applied to an already ordered sequence: SELECT myfunc(x) FROM (SELECT

[sqlite] maintaining order state for custom functions in sqlite: is it possible to insure that callback gets records in "ORDER BY" order?

2014-10-10 Thread john soprych
Is there a good way to create functions in sqlite where you can insure that your function callback will be called in order? The api currently has support for purely functional functions and result set aggregates, but neither require that their respective callbacks are called in sort order (ORD