Thread: C++ & Sqlite3

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    98

    C++ & Sqlite3

    After I made a post asking about databases someone pointed me to Sqlite3 which I'm very interested in trying...

    But the documentation is a bit sparse for a beginner to simply understand...

    I've spent a few hours googling for tutorials, examples, and such for using sqlite3 in C++... but the pickings have been very thin. I'm looking for a babysteps kind of thing. It introduces a very basic way of opening a database and maybe inserting one thing then printing it... etc...

    If anyone has a site they know of that kind of goes in that direction or some kind of resource recommendation, I would be infinitely appreciative

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Are you able to understand the quickstart example? Unfortunately, it is not very good since the use of prepared statements tends to be more common.

    I suggest borrowing the book The Definitive Guide to SQLite from your local library. It is not updated with the latest changes to the API, has a horrible index, but other than that it is the definitive guide to SQLite 3.

    Admittedly, I am working on a C++ wrapper to SQLite 3, but as usual, I never finish anyth.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    98
    Quote Originally Posted by laserlight View Post
    Are you able to understand the quickstart example? Unfortunately, it is not very good since the use of prepared statements tends to be more common.

    I suggest borrowing the book The Definitive Guide to SQLite from your local library. It is not updated with the latest changes to the API, has a horrible index, but other than that it is the definitive guide to SQLite 3.

    Admittedly, I am working on a C++ wrapper to SQLite 3, but as usual, I never finish anyth.
    Ah yes I understand the quick start example pretty well. I was looking at strictly C++ documentation on the site I think I might of skipped over that bit because I can definitely understand what is happening there

    As for the The Definitive Guide to SQLite I'll definitely check it out, thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SQLite not performing update
    By OnionKnight in forum C Programming
    Replies: 0
    Last Post: 01-21-2009, 04:21 PM