CopperSpice Overview
|
Suggested version is 5.5 or higher.
MySQL 5 introduces stored procedure support at the SQL level, but no API to control IN, OUT and INOUT parameters. Therefore, parameters have to be set and read using SQL commands instead of QSqlQuery::bindValue().
Example of a stored procedure:
Source code to access the OUT values:
@outval1
and @outval2
are variables local to the current connection and will not be affected by queries sent from another host or connection.The MySQL embedded server is a drop-in replacement for the normal client library. With the embedded MySQL server, a MySQL server is not required to use MySQL functionality.
To use the embedded MySQL server, simply link the plugin to libmysqld
instead of libmysqlclient.
Refer to the MySQL documentation, chapter "libmysqld, the Embedded MySQL Server Library" for more information about the MySQL embedded server.