Re: [sqlite] can i use sqlite3_column_***() function on multiple rows?

2005-04-27 Thread Brian Swetland
[jack wu <[EMAIL PROTECTED]>] > documentation says if > > int sqlite3_step(sqlite3_stmt*); > > returns SQLITE_ROW, (meaning a single row) then i can > use int sqlite3_column_int(sqlite3_stmt*, int iCol); > and other functions to extract the returned values out > of the row. > > can i use the s

Re: [sqlite] api questions about data lifetimes

2005-04-15 Thread Brian Swetland
Just trying to be sure I'm doing the right thing as far as data ownership and lifetime goes. > On Apr 14, 2005, at 11:21 AM, Brian Swetland wrote: > > >I'm wrapping sqlite3 with a lightweight little C++ API to allow me to > >use it more easily from C++ code and I hav

[sqlite] api questions about data lifetimes

2005-04-14 Thread Brian Swetland
I'm wrapping sqlite3 with a lightweight little C++ API to allow me to use it more easily from C++ code and I have a couple questions about the lifespan of data passed into and received from the sqlite3 API: 1. Will the const char* returned by sqlite3_column_name() persist until the statement i