diff options
Diffstat (limited to 'odb/mysql/connection-factory.hxx')
-rw-r--r-- | odb/mysql/connection-factory.hxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/odb/mysql/connection-factory.hxx b/odb/mysql/connection-factory.hxx index 4d57d75..2cd4184 100644 --- a/odb/mysql/connection-factory.hxx +++ b/odb/mysql/connection-factory.hxx @@ -6,6 +6,8 @@ #ifndef ODB_MYSQL_CONNECTION_FACTORY_HXX #define ODB_MYSQL_CONNECTION_FACTORY_HXX +#include <odb/pre.hxx> + #include <vector> #include <cstddef> // std::size_t @@ -17,11 +19,13 @@ #include <odb/details/condition.hxx> #include <odb/details/shared-ptr.hxx> +#include <odb/mysql/details/export.hxx> + namespace odb { namespace mysql { - class connection_factory + class LIBODB_MYSQL_EXPORT connection_factory { public: virtual details::shared_ptr<connection> @@ -37,7 +41,7 @@ namespace odb ~connection_factory (); }; - class new_connection_factory: public connection_factory + class LIBODB_MYSQL_EXPORT new_connection_factory: public connection_factory { public: new_connection_factory () @@ -59,7 +63,8 @@ namespace odb database_type* db_; }; - class connection_pool_factory: public connection_factory + class LIBODB_MYSQL_EXPORT connection_pool_factory: + public connection_factory { public: // The max_connections argument specifies the maximum number of @@ -142,4 +147,6 @@ namespace odb } } +#include <odb/post.hxx> + #endif // ODB_MYSQL_CONNECTION_FACTORY_HXX |