/usr/include/mysql++/mysql++.h is in libmysql++-dev 3.2.1+pristine-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | /// \file mysql++.h
/// \brief The main MySQL++ header file.
///
/// This file brings in all MySQL++ headers except for custom.h and
/// custom-macros.h which are a strictly optional feature of MySQL++.
///
/// There is no point in trying to optimize which headers you include,
/// because the MySQL++ headers are so intertwined. You can only get
/// trivial compile time benefits, at the expense of clarity.
/***********************************************************************
Copyright (c) 1998 by Kevin Atkinson, (c) 1999-2001 by MySQL AB, and
(c) 2004-2010 by Educational Technology Resources, Inc. Others may
also hold copyrights on code in this file. See the CREDITS.txt file
in the top directory of the distribution for details.
This file is part of MySQL++.
MySQL++ is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
MySQL++ is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public
License along with MySQL++; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
USA
***********************************************************************/
#ifndef MYSQLPP_MYSQLPP_H
#define MYSQLPP_MYSQLPP_H
/// \brief Encode MySQL++ library version number.
///
/// This macro takes major, minor and bugfix numbers (e.g. 1, 2, and 3)
/// and encodes them like 0x010203.
#define MYSQLPP_VERSION(major, minor, bugfix) \
(((major) << 16) | ((minor) << 8) | (bugfix))
/// \brief Get the library version number that mysql++.h comes from
///
/// MySQL++ Version number that the mysql++.h header file comes from,
/// encoded by MYSQLPP_VERSION macro. Compare this value to what
/// get_library_version() returns in order to ensure that your program
/// is using header files from the same version of MySQL++ as the
/// actual library you're linking to.
#define MYSQLPP_HEADER_VERSION MYSQLPP_VERSION(3, 2, 1)
// This #include order gives the fewest redundancies in the #include
// dependency chain.
#include "connection.h"
#include "cpool.h"
#include "query.h"
#include "scopedconnection.h"
#include "sql_types.h"
#include "transaction.h"
namespace mysqlpp {
/// \brief Get the current MySQL++ library version number
///
/// MySQL++ version number that the program is actually linked to,
/// encoded by MYSQLPP_VERSION macro. Compare this value to the
/// MYSQLPP_HEADER_VERSION constant in order to ensure that your
/// program is using header files from the same version of MySQL++ as
/// the actual library you're linking to.
MYSQLPP_EXPORT unsigned int get_library_version();
// This won't exist forever! Wean yourself away from these as soon as
// you can!
#if defined(MYSQLPP_OLD_CLASS_NAMES)
# define ColData String
# define NullisBlank NullIsBlank
# define NullisNull NullIsNull
# define NullisZero NullIsZero
# define ResNSel SimpleResult
# define Result StoreQueryResult
# define ResUse UseQueryResult
# define SQLString SQLTypeAdapter
#endif
} // end namespace mysqlpp
#endif // !defined(MYSQLPP_MYSQLPP_H)
/**
\mainpage MySQL++ Reference Manual
\section getting_started Getting Started
The best place to get started is the
<a href="../userman/index.html">user manual</a>. It provides
a guide to the example programs and more.
\section classes Major Classes
In MySQL++, the main user-facing classes are
mysqlpp::Connection, mysqlpp::Query, mysqlpp::Row,
mysqlpp::StoreQueryResult, and mysqlpp::UseQueryResult.
In addition, MySQL++ has a mechanism called Specialized SQL
Structures (SSQLS), which allow you to create C++ structures
that parallel the definition of the tables in your database
schema. These let you manipulate the data in your database using
native C++ data structures. Programs using this feature often
include very little SQL code, because MySQL++ can generate most
of what you need automatically when using SSQLSes. There is a
whole chapter in the user manual on how to use this feature of
the library, plus a section in the user manual's tutorial chapter
to introduce it. It's possible to use MySQL++ effectively without
using SSQLS, but it sure makes some things a lot easier.
\section files Major Files
The only two header files your program ever needs to include
are mysql++.h, and optionally custom.h. (The latter implements
the SSQLS mechanism.) All of the other files are used within
the library only.
\section user_questions If You Have Questions...
If you want to email someone to ask questions about this library,
we greatly prefer that you send mail to the MySQL++ mailing list,
which you can subscribe to here: http://lists.mysql.com/plusplus
That mailing list is archived, so if you have questions, do a
search to see if the question has been asked before.
You may find people's individual email addresses in various
files within the MySQL++ distribution. Please do not send mail
to them unless you are sending something that is inherently
personal. Questions that are about MySQL++ usage may well be
ignored if you send them to our personal email accounts. Those of
us still active in MySQL++ development monitor the mailing list,
so you aren't getting any extra "coverage" by sending messages
to those addresses in addition to the mailing list.
\section licensing Licensing
MySQL++ is licensed under the GNU Lesser General Public License,
which you should have received with the distribution package in
a file called "LGPL" or "LICENSE". You can also view it here:
http://www.gnu.org/licenses/lgpl.html or receive a copy by
writing to Free Software Foundation, Inc., 51 Franklin Street,
Fifth Floor, Boston, MA 02110-1301, USA.
*/
|