Re: [sqlite] Accessing multiple rows at once via a select statement

2010-12-07 Thread Jonathan R. Haws
> This isn't an SQLite problem; it's a C problem. You need to make a > C-style closure: function plus pointer to structure of persistent > data. Define: > >struct write_closure { >mystructure *next; >}; > > or whatever, then put a struct write_closure on the stack and pass a >

Re: [sqlite] Accessing multiple rows at once via a select statement

2010-12-06 Thread Jonathan R. Haws
On 12/06/2010 04:09 PM, Igor Tandetnik wrote: > Jonathan Haws wrote: >> I am having some troubles figuring out how I can access multiple rows in a >> table.. >> >> For example, I have a table that I am trying to "SELECT * FROM some_table;". >> For each row in the

Re: [sqlite] Accessing multiple rows at once via a select statement

2010-12-06 Thread Jonathan Haws
: [sqlite] Accessing multiple rows at once via a select statement Quoth Jonathan Haws <jonathan.h...@sdl.usu.edu>, on 2010-12-06 22:51:16 +: > As an argument to the callback, I pass the address of the array. > However, I cannot change that address and have it persist through to >

Re: [sqlite] Accessing multiple rows at once via a select statement

2010-12-06 Thread Drake Wilson
Quoth Jonathan Haws , on 2010-12-06 22:51:16 +: > As an argument to the callback, I pass the address of the array. > However, I cannot change that address and have it persist through to > the next call for the next row. This isn't an SQLite problem; it's a C

Re: [sqlite] Accessing multiple rows at once via a select statement

2010-12-06 Thread Igor Tandetnik
Jonathan Haws wrote: > I am having some troubles figuring out how I can access multiple rows in a > table.. > > For example, I have a table that I am trying to "SELECT * FROM some_table;". > For each row in the table, my callback function is > called. I predict

[sqlite] Accessing multiple rows at once via a select statement

2010-12-06 Thread Jonathan Haws
I am having some troubles figuring out how I can access multiple rows in a table.. For example, I have a table that I am trying to "SELECT * FROM some_table;". For each row in the table, my callback function is called. What I need to do is have the callback write the data in the rows into