Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Libraries

    MySQL wrapped 1.6

    Download button

    No screenshots available
    Downloads: 637  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 Hedstrm | More programs
    GPL / FREE
    April 8th, 2006, 10:35 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    MySQL wrapped description

    MySQL wrapped is a very small collection of classes that hides the MySQL C API.

    MySQL wrapped is a C wrapper for the MySQL database C application programming interface.

    Examples:

    The following example should be linked with the mysqlclient library from the MySQL distribution / build.

    #include
    #include
    #include
    #include

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

    int main()
    {
    Database db("localhost","dbuser","","testdb");
    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 fields by name.



    Product's homepage

      


    TAGS:

    C wrapper | MySQL database | programming interface | MySQL | wrapped | library



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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