Skip to content

concurrent reading/writing in "chunks" with RSQLite (need some help troubleshooting)

2 messages · Jonathan Greenberg, Seth Falcon

#
Seth:

Second follow-up question.  If you do NOT, in advance, know the number
of columns that will be in the output table, is there any way to
safely perform the initial output table creation within the loop (e.g.
the end of the first fetch determine the table # of columns)?  Or
should I do a "first pass" on a single row of input data to determine
the output data table parameters?

--j
On Mon, Jun 28, 2010 at 8:50 PM, Seth Falcon <seth at userprimary.net> wrote:
#
On Mon, Jul 5, 2010 at 12:48 PM, Jonathan Greenberg
<greenberg at ucdavis.edu> wrote:
Probably? :-)

Again, I think at this point, I don't have enough detail to be of much
use.  I don't understand how you can be doing a query and
programmatically inserting and not know how many fields you have. Have
you tried creating the table within the loop (with the new arrangement
for commit?)