Main Page Data Structures File List Data Fields
MyMySQL++ API Documentation
Version 1.0.0.1
License
All the source files of MyMySQL++ (not including the MySQL includes and library) are subject to the General Public License. The GPL can be found as gpl.txt in the source code directory of MyMySQL++.
Introduction
MyMySQL++ is a basic C++ API for the MySQL Database Server (http://www.mysql.com/). It is easy to use and extends your application with MySQL support within minutes.
MyMySQL++ consists of five classes:
CMyMySQLPPConnection
The connection object represents the connection to a mysql server and is used to perform queries.
CMyMySQLPPResult
The result object contains one result set and can be used to enumerate through the rows and determine the structure of the result set.
CMyMySQLPPRow
Represents a single row in a record set
CMyMySQLPPField
The field object reflects the structure of a field.
CMyMySQLPPTypeConv
Implementation of a type converter that automatically converts mysql type safe row data to the required type.
How to use
The following describes how to use MyMySQL++ with Visual Studio 6.0 or .NET. It has been successfully tested with these compilers:
1) To use MyMySQL++ in your application, copy the MyMySQL++ files (MyMySQLPP.h, MyMySQLPPConnection.h, MyMySQLPPConnection.cpp, MyMySQLPPField.h, MyMySQLPPField.cpp, MyMySQLPPResult.h, MyMySQLPPResult.cpp, MyMySQLPPRow.h, MyMySQLPPRow.cpp, MyMySQLPPTypeConv.h, MyMySQLPPTypeConv.cpp) to your application directory.
2) Copy directories "include" and "lib" to your application directory. These directories contain the required mysql client includes and library files.
3) Make a file named 'pch.h'. This file must include the mysql client include file "mysql.h".
4) Add MyMySQL++ files to your project.
5) Add the MySQL Client Library 'libmySQL.lib' (from "lib" directory) to your project.
6) Include 'pch.h', then 'MyMySQLPP.h' in your project.
7) Compile.
Examples
The MyMySQL++ package contains a sample application that shows the use of MyMySQL++. It reads queries froms stdin, sends them to server and outputs the result set to stdout.
Author Contact
If you have any questions or comments regarding this API send a mail to stefanschadt@gmx.de or post a message to MyMySQL++'s forum at http://www.sourceforge.net/projects/mymysqlplusplus/.
Change Log
- 1.0.0.0
- 1.0.0.1
- Added support to access row data by name of the column and not only by index.
Generated on Thu Feb 20 16:15:49 2003 for MyMySQL++ by
1.3-rc3