Files
poco/modules/Poco/Data/MySQL.cppm
Miko 041e7feeb7 Add support for modules (#4999)
* Add support for modules

* Use "" for inclusion

* Fix missing includes on Poco.Data module

* Add PDF and SevenZip modules, and match modules to build macros

* Add CI test

* Add missing link libraries in CMake

* Add remaining libraries DNSSD, CppParser and CppUnit. Changed some static declarations to inline to export

* We also need to forward the ENABLE_NETSSL_* macros

* Update CMakeLists files

* Add samples as requested, with DateTime and URI test for example

* Fix POCO_MODULES_INSTALL macro

* chore(CMake): Combine install macro for libraries and C++ modules into one macro.

* Apply testsuite changes and address include directories concerns

* Restore accidentally deleted build files

* Mistakenly added a file generated by CMake, removed.

---------

Co-authored-by: Matej Kenda <matejken@gmail.com>
2025-09-19 19:46:36 +02:00

47 lines
1.3 KiB
C++

//
// MySQL.cppm
//
// C++ module file
//
// Copyright (c) 2025, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
module;
#ifdef ENABLE_DATA_MYSQL
#include "Poco/Data/MySQL/Binder.h"
#include "Poco/Data/MySQL/Connector.h"
#include "Poco/Data/MySQL/Extractor.h"
#include "Poco/Data/MySQL/MySQLException.h"
#include "Poco/Data/MySQL/MySQL.h"
#include "Poco/Data/MySQL/MySQLStatementImpl.h"
#include "Poco/Data/MySQL/ResultMetadata.h"
#include "Poco/Data/MySQL/SessionHandle.h"
#include "Poco/Data/MySQL/SessionImpl.h"
#include "Poco/Data/MySQL/StatementExecutor.h"
#include "Poco/Data/MySQL/Utility.h"
#endif
export module Poco.Data:MySQL;
export namespace Poco::Data::MySQL {
#ifdef ENABLE_DATA_MYSQL
using Poco::Data::MySQL::Binder;
using Poco::Data::MySQL::ConnectionException;
using Poco::Data::MySQL::Connector;
using Poco::Data::MySQL::Extractor;
using Poco::Data::MySQL::MySQLException;
using Poco::Data::MySQL::MySQLStatementImpl;
using Poco::Data::MySQL::ResultMetadata;
using Poco::Data::MySQL::SessionHandle;
using Poco::Data::MySQL::SessionImpl;
using Poco::Data::MySQL::StatementException;
using Poco::Data::MySQL::StatementExecutor;
using Poco::Data::MySQL::TransactionException;
using Poco::Data::MySQL::Utility;
#endif
}