Re: [sqlite] C++ Sample Code

2011-05-15 Thread Stephan Beal
On Sun, May 15, 2011 at 4:24 AM, Don Ireland wrote: > Can anyone suggest a good source for sample C++ code? I really would > rather not come here and ask for every little thing--I'd learn it better > this way. > There are 3 different C++ wrappers here: http://fossil.wanderinghorse.net/repos/sq

Re: [sqlite] C++ Sample Code

2011-05-15 Thread Don Ireland
currently looking for a sample that explains iterating through selected data. But next it could be a diff topic. Don Ireland -Original Message- From: Stephan Beal To: General Discussion of SQLite Database Sent: Sun, 15 May 2011 4:01 AM Subject: Re: [sqlite] C++ Sample Code On Sun, Ma

Re: [sqlite] C++ Sample Code

2011-05-15 Thread Afriza N. Arief
The official programming API is in C and Tcl. If you want C++ API, you need to use 3rd party wrappers or write your own. To use C API, go to "SQLite Programming Interfaces" section at http://sqlite.org/docs.html On May 15, 2011 5:39 PM, "Don Ireland" wrote: > > Thanks for taking the time to resp

Re: [sqlite] C++ Sample Code

2011-05-15 Thread Stephan Beal
On Sun, May 15, 2011 at 11:39 AM, Don Ireland wrote: > Thanks for taking the time to respond. But I'd prefer to learn to use > SQLite. Then use sqlite's API. Why require C++? sqlite's API can be used just fine from C++ programs. > If I use one of these wrappers, I have to depend on someone

Re: [sqlite] C++ Sample Code

2011-05-15 Thread Sylvain Pointeau
I wrote one wrapper, that can be compiled, like sqlite3, in your C++ program. It doesn't rely on any third library except sqlite3. The update of sqlite3 is just done by replacing the amalgamation files. https://gitorious.org/sylisa-dblite/sylisa-dblite It uses the syntax borrowed from soci++, ver

Re: [sqlite] C++ Sample Code

2011-05-15 Thread Don Ireland
n Beal To: General Discussion of SQLite Database Sent: Sun, 15 May 2011 5:12 AM Subject: Re: [sqlite] C++ Sample Code On Sun, May 15, 2011 at 11:39 AM, Don Ireland wrote: > Thanks for taking the time to respond. But I'd prefer to learn to use > SQLite. Then use sqlite's API.

Re: [sqlite] C++ Sample Code

2011-05-15 Thread Don Ireland
rning that it's hard to read. Don Ireland -Original Message- From: "Afriza N. Arief" To: General Discussion of SQLite Database Sent: Sun, 15 May 2011 5:10 AM Subject: Re: [sqlite] C++ Sample Code The official programming API is in C and Tcl. If you want C++ API, you need

Re: [sqlite] C++ Sample Code

2011-05-15 Thread Simon Slavin
On 15 May 2011, at 3:58pm, Don Ireland wrote: > I never said I need C++ not C. I asked for sample code for use in C++. If C > code will work just fine then sample C code would be fine and dandy with me. See the end of http://www.sqlite.org/quickstart.html after that, Google on 'sqlite c sampl

Re: [sqlite] C++ Sample Code

2011-05-15 Thread Don Ireland
, 15 May 2011 10:08 AM Subject: Re: [sqlite] C++ Sample Code On 15 May 2011, at 3:58pm, Don Ireland wrote: > I never said I need C++ not C. I asked for sample code for use in C++. If C > code will work just fine then sample C code would be fine and dandy with me. See the end of

Re: [sqlite] C++ Sample Code

2011-05-21 Thread Amy and Steve
Don, I think Simon answered your question. To back up Simon's statements below, the C functions shown at ../quickstart.html are compiled nicely by any C++ compiler. I use Codegear C++ Builder and the amalgemation compiles without a single error or warning (I am impressed). SPEAKING of C++ c