John,

Understood. 

Is the callback function interface going to be eliminated? 

What advantages does the new interface offer over the callback function
interface?

Lee Crain

_________________________________

-----Original Message-----
From: John Stanton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 08, 2007 8:06 AM
To: sqlite-users@sqlite.org
Subject: Re: [sqlite] Extremely new to SQLite

The callback interface is there to support legacy applications.  It has 
been replaced by prepare/step for new work.

Lee Crain wrote:
> Dennis,
> 
> Are you certain that the callback function interface has been
deprecated? 
> 
>>From the link you posted:
> 
> ---------------
> 
> "2.2 Executing SQL statements
>    typedef int (*sqlite_callback)(void*,int,char**, char**);
>    int sqlite3_exec(sqlite3*, const char *sql, sqlite_callback, void*,
> char**);
> The sqlite3_exec function works much as it did in SQLite version 2. Zero
> or more SQL statements specified in the second parameter are compiled
and
> executed. Query results are returned to a callback routine."
> 
> ---------------
> 
> I couldn't find a reference to its deprecation.
> 
> Lee Crain
> 
> ________________________________________________
> 
> 
> -----Original Message-----
> From: Dennis Cote [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, August 07, 2007 1:08 PM
> To: sqlite-users@sqlite.org
> Subject: Re: [sqlite] Extremely new to SQLite
> 
> Stephen Sutherland wrote:
> 
>>use the quick start code 
>>  http://www.sqlite.org/quickstart.html
>>   
>>  That's what I used to build all my code from  
>>   
>>  
> 
> Stephen,
> 
> The quickstart code is very old. It uses the callback function interface

> which is a depreciated API function that is maintained primarily for 
> backward compatibility.
> 
> You should really look at the prepare/bind/step/column set of API 
> functions introduced in version 3 which is described at 
> http://www.sqlite.org/capi3.html
> 
> Dennis Cote
> 
>
--------------------------------------------------------------------------
> ---
> To unsubscribe, send email to [EMAIL PROTECTED]
>
--------------------------------------------------------------------------
> ---
> 
> 
> 
>
--------------------------------------------------------------------------
---
> To unsubscribe, send email to [EMAIL PROTECTED]
>
--------------------------------------------------------------------------
---
> 


--------------------------------------------------------------------------
---
To unsubscribe, send email to [EMAIL PROTECTED]
--------------------------------------------------------------------------
---



-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to