Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Database > Database APIs

    sqlitewrapped 1.3

    Download button

    Downloads: 633  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Anders Hedström | More programs
    GPL / FREE
    April 5th, 2006, 08:35 GMT
    ROOT / Database / Database APIs

     Read user reviews (0)  Refer to a friend  Subscribe

    sqlitewrapped description

    sqlitewrapped is a C wrapper for the Sqlite database C application programming interface.

    sqlitewrapped is a C wrapper for the Sqlite database C application programming interface.

    The code works for linux/unix, as well as win32. This library supports version 3 of the sqlite database. From version 1.2 the connection pool can be made threadsafe.

    Examples:

    #include < stdio.h>
    #include < stdlib.h>
    #include < sqlite3.h>
    #include < string>

    #include "Database.h"
    #include "Query.h"

    int main()
    {
    Database db( "database_file.db" );
    Query q(db);

    q.execute("delete from user");
    q.execute("insert into user values(1,'First Person')");
    q.execute("insert into user values(2,'Another Person')");

    q.get_result("select num,name from user");
    while (q.fetch_row())
    {
    long num = q.getval();
    std::string name = q.getstr();

    printf("User#%ld: %sn", num, name.c_str() );
    }
    q.free_result();
    }

    What's New in This Release:

    · This release adds methods to access values in the result set by column name.



    Product's homepage

      


    TAGS:

    sqlite wrapper | database API | C wrapper | sqlitewrapped | sqlite | wrapper

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM