![]() ![]() The timeout in seconds for each attempt to write to the server The timeout in seconds for each attempt to read from the server TRUE or 1: Automatically reconnect after connection lossįALSE or 0: No automatic reconnect after connection loss (default) Specified the shared memory segment name to use Specifies the socket or named pipe to use, even it's called UNIX_SOCKET it can also be used on windows MYSQL_PROTOCOL_TCP: use tcp connection (ip/hostname specified through setHostname()) MYSQL_PROTOCOL_SOCKET: connect through a socket specified in UNIX_SOCKET MYSQL_PROTOCOL_PIPE: connect through a named pipe specified in UNIX_SOCKET MYSQL_PROTOCOL_MEMORY: connect through shared memory specified in MYSQL_SHARED_MEMORY_BASE_NAME ![]() If set, send found rows instead of affected rows If set, switches to compressed protocol after successful authentication Build files have been written to: C: /build -qt6 -sqldrivers For example, you can do this as follows, to locate MySQL:Ĭ:\ Qt\ 6.0.0\mingw81_64\bin\qt -cmake -G Ninja C:\ Qt\ 6.0.0\Src\qtbase\src\plugins\sqldrivers -DMySQL_INCLUDE_DIR = "C:\mysql-8.0.22-win圆4\include" -DMySQL_LIBRARY = "C:\mysql-8.0.22-win圆4\lib\libmysql.lib" -DCMAKE_INSTALL_PREFIX = "C:\Qt\6.0.0\mingw81_64" this is required for PostgreSQL and SQLite). You should prefer this method if module needs to set properties for the provided target libraries (e.g. ![]() In some cases it's more convenient to use CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH variables to locate required libraries. This is especially useful if the package provides its own set of system libraries that should not be recognized by the build routine. When you configure drivers in the manner described above, CMake skips any dependency checks and uses the provided paths as is. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |