Skip to content

A C++ wrapper for the MySQL/MariaDB C API built on STL principles.

License

LGPL-2.1, Unknown licenses found

Licenses found

LGPL-2.1
LICENSE.txt
Unknown
COPYING.txt
Notifications You must be signed in to change notification settings

youny626/mysqlpp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What It Is

MySQL++ is a C++ wrapper for the MySQL and MariaDB C APIs. It is built around STL principles, to make dealing with the database as easy as dealing with an STL container. MySQL++ relieves the programmer of dealing with cumbersome C data structures, generation of repetitive SQL statements, and manual creation of C++ data structures to mirror the database schema.

MySQL++’s development home is its Fossil repository. You may be reading this via its GitHub mirror, but that repository is read-only, meant as a download-only mirror and for use by automation tooling based on Git. Checkins to the Fossil repository get pushed into the GitHub mirror within a day.

Prerequisites

To build MySQL++, you must have the MySQL/MariaDB C API development files installed.

On Unixy systems (Linux, Mac OS X, Cygwin, *BSD, Solaris...), the MySQL development files are installed if you build MySQL from source. If you installed MySQL as a binary package, then the development files are often packaged separately from the MySQL server itself. It's common for the package containing the development files to be called something like MySQL-devel, libmysqlclient-dev, etc.

If you're building on Windows with Visual C++ or MinGW, you need to install the native Windows port of MySQL or MariaDB. The way that’s packaged changes occasionally, so you might have to select a "complete" version rather than the server-only version. You might also have to choose a “custom” installation option to get the development files.

Another pitfall is that the project files we ship assume that you've installed the current General Availability release of MySQL in its default location on your computer. If you've installed a different version, or if those packaging the development files move them around — which happens occasionally! — you'll have to adjust the link and include file paths in the project settings.

Additional Things to Read

Each major platform we support has a dedicated README-*.txt file for it containing information specific to that platform. Please read it.

For authorship information, see the CREDITS.txt file.

For license information, see the COPYING.txt file.

If you want to change MySQL++, see the HACKERS.md file.

You should have received a user manual and a reference manual with MySQL++. If not, you can read a recent version online.

Search the MySQL++ mailing list archives and its forum if you have more questions.

Building the Library

MySQL++ uses Bakefile to generate platform-specific project files and makefiles from a single set of input files. We currently support these build systems:

  • autoconf: Use this method for most Unix type platforms along with the generic instructions. We have supplemental information for Linux, macOS, Cygwin, and Solaris.

  • MinGW: We ship Makefile.mingw for MinGW. See its README for details.

  • Visual C++: We ship Visual Studio 2003, 2005, and 2008 project files. Newer versions of Visual C++ can upgrade these automatically, though the result sometimes requires manual adjustment. No older version of Visual C++ will build MySQL++, due to compiler limitations. See its README for more details.

  • Xcode: We ship an Xcode project file, but it hasn't been well tested, since the autoconf method works just fine on macOS.

Unsupported C++ Compilers and Operating Systems

If you get MySQL++ to build under an operating system or with a C++ compiler not listed above, we’re likely to accept a patch for it. See the HACKERS file for guidance.

Example Programs

You may want to try out the programs in the examples subdirectory to ensure that the MySQL++ API and your MySQL database are both working properly. Also, these examples give many examples of the proper use of MySQL++.

If You Want to Hack on MySQL++...

If you intend to submit a change to the MySQL++ project, see the HACKERS file.

If you want to change the MySQL++ user manual, also read the user manual’s README.

If you want to change the MySQL++ reference manual, see the Doxygen manual.

About

A C++ wrapper for the MySQL/MariaDB C API built on STL principles.

Resources

License

LGPL-2.1, Unknown licenses found

Licenses found

LGPL-2.1
LICENSE.txt
Unknown
COPYING.txt

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 90.1%
  • Perl 4.4%
  • M4 3.9%
  • Shell 1.3%
  • Batchfile 0.3%