mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-18 19:47:15 +01:00
Port legacy MySQL implementation.
This commit is contained in:
parent
f5592208fa
commit
425b13afe0
@ -152,10 +152,13 @@ endif()
|
|||||||
# Does POCO have MySLQ support?
|
# Does POCO have MySLQ support?
|
||||||
find_package(MySQL)
|
find_package(MySQL)
|
||||||
if(MYSQL_FOUND)
|
if(MYSQL_FOUND)
|
||||||
|
message(STATUS MySQL was enabled)
|
||||||
# Link the libraries
|
# Link the libraries
|
||||||
target_link_libraries(SqModule Poco::DataMySQL)
|
target_link_libraries(SqModule Poco::DataMySQL)
|
||||||
# Inform the plug-in that it can make use of this library
|
# Inform the plug-in that it can make use of this library
|
||||||
target_compile_definitions(SqModule PRIVATE SQMOD_POCO_HAS_MYSQL=1)
|
target_compile_definitions(SqModule PRIVATE SQMOD_POCO_HAS_MYSQL=1)
|
||||||
|
# Include legacy implementation sources
|
||||||
|
target_sources(SqModule PRIVATE Library/MySQL.hpp Library/MySQL.cpp)
|
||||||
endif()
|
endif()
|
||||||
# Does POCO have PostgreSQL support?
|
# Does POCO have PostgreSQL support?
|
||||||
find_package(PostgreSQL)
|
find_package(PostgreSQL)
|
||||||
|
3369
module/Library/MySQL.cpp
Normal file
3369
module/Library/MySQL.cpp
Normal file
File diff suppressed because it is too large
Load Diff
2670
module/Library/MySQL.hpp
Normal file
2670
module/Library/MySQL.hpp
Normal file
File diff suppressed because it is too large
Load Diff
@ -44,6 +44,9 @@ extern void Register_ZMQ(HSQUIRRELVM vm);
|
|||||||
#ifdef SQMOD_POCO_HAS_SQLITE
|
#ifdef SQMOD_POCO_HAS_SQLITE
|
||||||
extern void Register_SQLite(HSQUIRRELVM vm);
|
extern void Register_SQLite(HSQUIRRELVM vm);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef SQMOD_POCO_HAS_MYSQL
|
||||||
|
extern void Register_MySQL(HSQUIRRELVM vm);
|
||||||
|
#endif
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
extern void Register_POCO(HSQUIRRELVM vm);
|
extern void Register_POCO(HSQUIRRELVM vm);
|
||||||
@ -104,6 +107,9 @@ bool RegisterAPI(HSQUIRRELVM vm)
|
|||||||
#ifdef SQMOD_POCO_HAS_SQLITE
|
#ifdef SQMOD_POCO_HAS_SQLITE
|
||||||
Register_SQLite(vm);
|
Register_SQLite(vm);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef SQMOD_POCO_HAS_MYSQL
|
||||||
|
Register_MySQL(vm);
|
||||||
|
#endif
|
||||||
|
|
||||||
Register_POCO(vm);
|
Register_POCO(vm);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user