-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mysqlcpp: add recipe #24678
Open
husitawi
wants to merge
124
commits into
conan-io:master
Choose a base branch
from
husitawi:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+311
−0
Open
mysqlcpp: add recipe #24678
Changes from all commits
Commits
Show all changes
124 commits
Select commit
Hold shift + click to select a range
f9b65f8
Added mysqlcppconn recipe
husitawi 50e57b0
Merge branch 'conan-io:master' into master
husitawi 82daee4
Merge branch 'conan-io:master' into master
husitawi 52d437a
Updated mysqlcppconn recipe
husitawi fc6c979
Updated author
husitawi d5f242e
Rename recipe
husitawi bd1c33e
Add test v1
husitawi 00e7088
Lower CMAKE requirements for test
husitawi ffc564c
Fixed the recipe url
husitawi 14f977e
Remove conanv2 settings
husitawi 1d49843
Add proper sha256 for source
husitawi 03105c0
Upgraded CMake version
husitawi 44a3e71
Added universal build for Apple
husitawi 7b8389a
Fixed conandata file
husitawi f56de0b
Fixed conandata file
husitawi 480ae10
Minor changes
husitawi e0cd5cb
Fixing build folder
husitawi 6b4b51a
Fixing build folder
husitawi bd47562
Fixing build folder again
husitawi 220fcbc
Fixed the cmake conf
husitawi 0e156a3
Minor changes
husitawi 5c2457b
Merge branch 'conan-io:master' into master
husitawi 05bbde5
Update arch
husitawi 9131d67
Minor changes in arch for osx
husitawi 6f9d2ea
Minor changes in arch for osx again
husitawi 59aa8bc
Minor changes in arch for osx again and again
husitawi e281b2e
Minor changes in arch for osx #4
husitawi e920931
Fix OSX cross-building
husitawi 3027324
Fix OSX cross-building #2
husitawi fa9a28c
Removed protobuf requirement
husitawi ddcd215
Fixed test file
husitawi a1f0670
Fixed duplicate symbols
husitawi 8eb63df
Fixed duplicate symbols #2
husitawi 5f1414e
Fixed duplicate symbols #3
husitawi 4d9129d
Fixed duplicate symbols #4
husitawi 1c9d7b5
Fixing x86
husitawi 9697c57
Fixing x86 #2
husitawi 337d81e
Fixing x86 #3
husitawi 1ca8325
Trying to cross-build
husitawi d1f8755
Fixing x86 #4
husitawi c0eb42e
Merge branch 'conan-io:master' into master
husitawi b6054c6
Fixing x86 #5
husitawi 0c9ccfa
Merge branch 'master' of github.com:husitawi/conan-center-index
husitawi 9a6f72a
Fixing x86 #6
husitawi 61cd984
Avoid cross-building
husitawi 7d95f4b
Raise needed apple-clang version
husitawi 44b27a8
Cleanup
AbrilRBS 0dc4b19
Merge branch 'conan-io:master' into master
husitawi a13cb70
py file changes
husitawi 79ade4b
Re-add needed explicit static-shared flags
husitawi 5d856f9
Fix build
husitawi 9059427
Fixing apple
husitawi ce148bc
Update conanfile.py
husitawi 9951442
Fix build
husitawi a43738a
Merge branch 'master' of github.com:husitawi/conan-center-index
husitawi 6505792
Remove APPLE requirements
husitawi 441ca36
Update conanfile.py
husitawi 097e6b9
Fixing apple
husitawi 12c7b1c
Fixing apple
husitawi 7787b75
Fixing apple
husitawi bf96be2
Fixing apple
husitawi 83797da
Fixing apple
husitawi bd90a59
Fixing apple
husitawi 88aa1c1
Fixing apple
husitawi 8bebf02
Fixing apple
husitawi 2426fc8
Fixing apple
husitawi ea51f29
Fixing apple
husitawi 4796a35
Fixing apple
husitawi 657f125
Fixing apple
husitawi 769b94f
Apply suggestions from code review
husitawi 2ef89c1
Apply suggestions from code review
husitawi 2772c38
Re-added apple-clang minimum version requirement
husitawi f72b308
Fix windows
husitawi 61ffa8f
Fix windows & try Apple again with openssl 1x
husitawi 2eaf105
Fix windows
husitawi ac157a0
V1 pipeline
husitawi 80514a9
V1 pipeline
husitawi c39cb1b
V1 pipeline, fixed min version
husitawi fb5ba1d
V1 pipeline, fixed min version
husitawi 30f438d
V1 pipeline, fixed min version and added old cpp info lines
husitawi 1b62e80
V1 pipeline
husitawi a1b6080
V1 pipeline
husitawi 138b301
V1 pipeline
husitawi afc519b
V1 pipeline
husitawi d1a5a3b
V1 pipeline
husitawi 1781bc9
V1 pipeline
husitawi 171fbcd
V1 pipeline
husitawi 043c3c5
Fixing pipeline v1
husitawi 0d7a411
Fixing pipeline v1
husitawi 39225f2
Fixing pipeline v1
husitawi 5f77f6b
Fixing pipeline v1
husitawi e5be133
Fixing pipeline v1
husitawi ac09bc1
Fixing pipeline v1
husitawi b28041e
Fixing pipeline v1
husitawi be831f1
Apply suggestions from code review
husitawi bf39632
Fix example
husitawi 42b23ec
Fix example and pipelines v1
husitawi cee8dd8
Fix example and pipelines v1
husitawi 00aea58
Fix protobuf v1 pipeline
husitawi 652dd70
Fix protobuf v1 pipeline
husitawi d2bd6b1
Fix protobuf v1 pipeline
husitawi bf241eb
Fix protobuf v1 pipeline
husitawi b1cfbba
Fix protobuf v1 pipeline
husitawi 68548ee
V1 pipeline
husitawi bc6cd79
V1 pipeline
husitawi f0fd27c
V1 pipeline
husitawi 10ea797
V1 pipeline
husitawi 494273b
Fix window lib sub dir
husitawi 555b556
Cleanups
AbrilRBS 7173bf1
Fix protobuf issues
AbrilRBS 527ae20
Revert
husitawi 383635c
Remove strict dep, rm ninja
husitawi d5ad70d
Added suggestions
husitawi e2a3534
Added suggestions
husitawi 4fd0580
Fix openssl dup symb
husitawi 8393a6f
Fix scoped package
husitawi 81cb5f1
Fixing dup symb
husitawi c654208
Fixing openssl
husitawi 83eabcf
Fixing openssl
husitawi 99c1a6a
Fixing openssl removed duplicate symbols
husitawi 8ac9a55
Fixing openssl removed duplicate symbols 2.0
husitawi 0b2ee15
Fixing openssl removed duplicate symbols from cmake file 3.0
husitawi 9c098cb
Fixing openssl for the fun of it
husitawi 1103fdc
Fixing openssl for the fun of it
husitawi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
sources: | ||
"9.0.0": | ||
url: "https://github.com/mysql/mysql-connector-cpp/archive/refs/tags/9.0.0.zip" | ||
sha256: "9d4b90a4efe8861e821136fb3024074d14875749d8b69d1821361b2f2b8bfe55" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,258 @@ | ||
import os | ||
import shutil | ||
from conan import ConanFile | ||
from conan.tools.scm import Version | ||
from conan.errors import ConanInvalidConfiguration | ||
from conan.tools.apple import is_apple_os | ||
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout, CMakeDeps | ||
from conan.tools.build import check_min_cppstd, cross_building | ||
from conan.tools.files import get, replace_in_file, copy, rm, rmdir | ||
from conan.tools.microsoft import is_msvc, is_msvc_static_runtime | ||
|
||
required_conan_version = ">=1.64.1" | ||
|
||
class MysqlCppConnRecipe(ConanFile): | ||
name = "mysql-connector-cpp" | ||
package_type = "library" | ||
short_paths = True | ||
version = "9.0.0" | ||
|
||
# Optional metadata | ||
license = "GPL-2.0-only" | ||
url = "https://github.com/conan-io/conan-center-index" | ||
homepage = "https://github.com/mysql/mysql-connector-cpp" | ||
description = "A MySQL client library for C++ development" | ||
topics = ("mysql", "sql", "connector", "database", "c++", "cpp") | ||
|
||
# Binary configuration | ||
settings = "os", "compiler", "build_type", "arch" | ||
options = { | ||
"shared": [True, False], | ||
"fPIC": [True, False], | ||
} | ||
|
||
default_options = { "shared": False, "fPIC": True } | ||
|
||
@property | ||
def _minimum_compilers_version(self): | ||
return { | ||
"Visual Studio": "14", | ||
"msvc": "192", | ||
"gcc": "8", | ||
"clang": "7", | ||
"apple-clang": "10", | ||
} | ||
|
||
def validate(self): | ||
if self.settings.compiler.get_safe("cppstd"): | ||
check_min_cppstd(self, "17") | ||
|
||
# Compiler minimum version | ||
compiler = self.settings.compiler | ||
compiler_name = str(compiler) | ||
minimum_version = self._minimum_compilers_version.get(compiler_name, False) | ||
if minimum_version and Version(compiler.version) < minimum_version: | ||
raise ConanInvalidConfiguration( | ||
f"Requires compiler {compiler_name} minimum version: {minimum_version} with C++17 support." | ||
) | ||
|
||
def requirements(self): | ||
self.requires("openssl/[>=1.1 <4]") | ||
self.requires("zlib/[>=1.2.11 <2]") | ||
self.requires("zstd/[>=1.5 <1.6]") | ||
self.requires("lz4/[>=1.9.2 <=1.10.0]") | ||
self.requires("protobuf/3.21.12") | ||
self.requires("rapidjson/1.1.0") | ||
|
||
def build_requirements(self): | ||
self.tool_requires("cmake/[>=3.24 <4]") | ||
self.tool_requires("protobuf/<host_version>") | ||
|
||
def source(self): | ||
get(self, **self.conan_data["sources"][self.version], strip_root=True) | ||
|
||
def config_options(self): | ||
if self.settings.os == "Windows": | ||
self.options.rm_safe("fPIC") | ||
|
||
def configure(self): | ||
if self.options.shared: | ||
self.options.rm_safe("fPIC") | ||
|
||
def layout(self): | ||
cmake_layout(self, src_folder="src") | ||
|
||
def _package_folder_dep(self, dep, scope="host"): | ||
try: | ||
if scope == "build": | ||
return self.dependencies.build[dep].package_folder.replace("\\", "/") | ||
except: | ||
self.output.info(f"Failed to get a build scoped package path for : {dep}") | ||
return self.dependencies[dep].package_folder.replace("\\", "/") | ||
|
||
def _include_folder_dep(self, dep): | ||
return self.dependencies[dep].cpp_info.includedirs[0].replace("\\", "/") | ||
|
||
def _lib_folder_dep(self, dep): | ||
return self.dependencies[dep].cpp_info.libdirs[0].replace("\\", "/") | ||
|
||
def generate(self): | ||
|
||
tc = CMakeToolchain(self) | ||
|
||
# OpenSSL | ||
tc.cache_variables["WITH_SSL"] = self._package_folder_dep("openssl") | ||
tc.cache_variables["OPENSSL_ROOT_DIR"] = self._package_folder_dep("openssl") | ||
# LZ4 patches | ||
tc.cache_variables["WITH_LZ4"] = self._package_folder_dep("lz4") | ||
# ZLIB patches | ||
tc.cache_variables["WITH_ZLIB"] = self._package_folder_dep("zlib") | ||
# ZSTD patches | ||
tc.cache_variables["WITH_ZSTD"] = self._package_folder_dep("zstd") | ||
# Build patches | ||
tc.cache_variables["BUILD_STATIC"] = not self.options.shared | ||
tc.cache_variables["BUILD_SHARED_LIBS"] = self.options.shared | ||
# Disable Boost, only legacy JDBC connector needs it | ||
tc.cache_variables["BOOST_DIR"] = "FALSE" | ||
# Protobuf | ||
tc.cache_variables["WITH_PROTOBUF"] = self._package_folder_dep("protobuf") | ||
# RapidJSON | ||
tc.cache_variables["RAPIDJSON_INCLUDE_DIR"] = self._include_folder_dep("rapidjson") | ||
|
||
tc.generate() | ||
|
||
deps = CMakeDeps(self) | ||
deps.set_property("protobuf::libprotobuf", "cmake_target_name", "ext::protobuf") | ||
deps.set_property("protobuf::libprotobuf-lite", "cmake_target_name", "ext::protobuf-lite") | ||
deps.set_property("rapidjson", "cmake_target_name", "RapidJSON::rapidjson") | ||
deps.set_property("zlib", "cmake_target_name", "ext::z") | ||
deps.set_property("lz4", "cmake_target_name", "ext::lz4") | ||
deps.set_property("zstd", "cmake_target_name", "ext::zstd") | ||
deps.generate() | ||
|
||
def _patch_sources(self): | ||
|
||
# Delete internal libs | ||
rmdir(self, os.path.join(self.source_folder, "cdk", "extra")) | ||
rm(self, "DepFindSSL.cmake", os.path.join(self.source_folder, "cdk", "cmake")) | ||
|
||
# Fix static lib naming | ||
if not self.options.shared and is_msvc(self): | ||
replace_in_file(self, os.path.join(self.source_folder, "install_layout.cmake"), | ||
"set(LIB_NAME_STATIC \"${LIB_NAME}-mt\")", | ||
"set(LIB_NAME_STATIC \"${LIB_NAME_STATIC}-mt\")", | ||
strict=False) | ||
|
||
# Apple patches | ||
if is_apple_os(self) and cross_building(self): | ||
patch = f"set(CMAKE_OSX_ARCHITECTURES \"{self.settings.arch}\" CACHE INTERNAL \"\" FORCE)\n" | ||
# Package level | ||
replace_in_file(self, os.path.join(self.source_folder, "CMakeLists.txt"), "PROJECT(MySQL_CONCPP)", f"PROJECT(MySQL_CONCPP)\n{patch}", strict=False) | ||
|
||
# ZLIB patch | ||
zlib_name = "z" if not self.settings.os == "Windows" else "zlib" | ||
replace_in_file(self, os.path.join(self.source_folder, "cdk", "cmake", "DepFindCompression.cmake"), "add_ext(zlib zlib.h z ext_zlib)", f"add_ext(zlib zlib.h {zlib_name} ext_zlib)") | ||
|
||
# ZSTD patch | ||
zstd_name = "zstd" if not self.settings.os == "Windows" else "zstd_static" | ||
replace_in_file(self, os.path.join(self.source_folder, "cdk", "cmake", "DepFindCompression.cmake"), "add_ext(zstd zstd.h zstd ext_zstd)", f"add_ext(zstd zstd.h {zstd_name} ext_zstd)") | ||
|
||
# Compression patch | ||
replace_in_file(self, os.path.join(self.source_folder, "cdk", "protocol", "mysqlx","CMakeLists.txt"), "PRIVATE cdk_foundation ext::z ext::lz4 ext::zstd", f"PRIVATE cdk_foundation ext::{zlib_name} ext::lz4 ext::{zstd_name}") | ||
|
||
# OpenSSL patch | ||
replace_in_file(self, os.path.join(self.source_folder, "mysql-concpp-config.cmake.in"), "find_deps()", "") | ||
replace_in_file(self, os.path.join(self.source_folder, "CMakeLists.txt"), "find_dependency(SSL)", "") | ||
# Remove problematic func | ||
# replace_in_file(self, os.path.join(self.source_folder, "CMakeLists.txt"), "bootstrap()", "#bootstrap()") | ||
# cdk target | ||
replace_in_file(self, os.path.join(self.source_folder, "cdk", "CMakeLists.txt"), "find_dependency(SSL)", "") | ||
replace_in_file(self, os.path.join(self.source_folder, "cdk", "CMakeLists.txt"), "ADD_SUBDIRECTORY(extra)", "") | ||
# foundation target | ||
replace_in_file(self, os.path.join(self.source_folder, "cdk", "foundation", "CMakeLists.txt"), "include(CheckCXXSourceCompiles)", "find_package(OpenSSL REQUIRED)") | ||
extra_lib = "Crypt32" if self.settings.os == "Windows" else "" | ||
replace_in_file(self, os.path.join(self.source_folder, "cdk", "foundation", "CMakeLists.txt"), "# generated config.h", "\"${RAPIDJSON_INCLUDE_DIR}\"") | ||
replace_in_file(self, os.path.join(self.source_folder, "cdk", "foundation", "CMakeLists.txt"), "PRIVATE OpenSSL::SSL", f"OpenSSL::SSL {extra_lib}") | ||
# mysqlx target | ||
replace_in_file(self, os.path.join(self.source_folder, "cdk", "mysqlx", "CMakeLists.txt"), | ||
"target_link_libraries(cdk_mysqlx PUBLIC cdk_proto_mysqlx cdk_foundation)", | ||
"target_link_libraries(cdk_mysqlx PUBLIC cdk_foundation cdk_proto_mysqlx)") | ||
replace_in_file(self, os.path.join(self.source_folder, "cdk", "mysqlx", "CMakeLists.txt"), "target_link_libraries(cdk_mysqlx PRIVATE OpenSSL::SSL)", "") | ||
|
||
# Protobuf patches | ||
try: | ||
protobuf = "protobufd" if self.dependencies.build["protobuf"].settings.build_type == "Debug" else "protobuf" | ||
except: | ||
protobuf = "protobuf" | ||
# INFO: Disable protobuf-lite to use Conan protobuf targets instead | ||
replace_in_file(self, os.path.join(self.source_folder, "cdk", "cmake", "DepFindProtobuf.cmake"), "LIBRARY protobuf-lite pb_libprotobuf-lite", "") | ||
# INFO: Fix protobuf library name according to the build type | ||
replace_in_file(self, os.path.join(self.source_folder, "cdk", "cmake", "DepFindProtobuf.cmake"), "LIBRARY protobuf", f"LIBRARY {protobuf}") | ||
# INFO: Disable protobuf-lite to use Conan protobuf targets instead | ||
replace_in_file(self, os.path.join(self.source_folder, "cdk", "protocol", "mysqlx", "CMakeLists.txt"), "ext::protobuf-lite", f"ext::{protobuf}") | ||
# INFO: Disable protobuf-lite to use Conan protobuf targets instead | ||
replace_in_file(self, os.path.join(self.source_folder, "cdk", "core", "CMakeLists.txt"), "ext::protobuf-lite", f"ext::{protobuf}") | ||
|
||
def build(self): | ||
self._patch_sources() | ||
cmake = CMake(self) | ||
cmake.configure() | ||
cmake.build() | ||
|
||
def package(self): | ||
cmake = CMake(self) | ||
cmake.install() | ||
|
||
# Clean | ||
rm(self, "INFO_SRC", self.package_folder) | ||
rm(self, "INFO_BIN", self.package_folder) | ||
rm(self, "*.cmake", self.package_folder) | ||
|
||
# Add License | ||
copy(self, "LICENSE.txt", dst=os.path.join(self.package_folder, "licenses"), src=self.source_folder) | ||
|
||
# Just rename the lib64 dir | ||
source_dir = os.path.join(self.package_folder, "lib64") | ||
if os.path.isdir(source_dir): | ||
shutil.move(source_dir, os.path.join(self.package_folder, "lib")) | ||
|
||
def package_info(self): | ||
|
||
# Lib dir | ||
lib_dir = "lib" if self.settings.build_type == "Release" else os.path.join("lib", "debug") | ||
if is_msvc(self): | ||
lib_dir = [os.path.join(lib_dir, "vs14")] | ||
else: | ||
lib_dir = [lib_dir] | ||
self.cpp_info.libdirs = lib_dir | ||
self.cpp_info.bindirs = ["lib"] | ||
|
||
if self.settings.os == "Windows": | ||
self.cpp_info.system_libs.extend(["dnsapi", "ws2_32"]) | ||
if is_apple_os(self) or self.settings.os in ["Linux", "FreeBSD"]: | ||
self.cpp_info.system_libs.extend(["resolv"]) | ||
if self.settings.os in ["Linux", "FreeBSD"]: | ||
self.cpp_info.system_libs.extend(["m", "pthread", "dl"]) | ||
|
||
target = "concpp-xdevapi" | ||
target_alias = "concpp" | ||
|
||
if self.options.shared: | ||
target += "-static" | ||
target_alias += "-static" | ||
|
||
if self.settings.build_type == "Debug": | ||
target += "-debug" | ||
target_alias += "-debug" | ||
|
||
self.cpp_info.set_property("cmake_target_name", "mysql::concpp") | ||
self.cpp_info.set_property("cmake_target_aliases", [f"mysql::{target_alias}"] ) | ||
|
||
lib = "mysqlcppconnx" if self.options.shared else "mysqlcppconnx-static" | ||
if is_msvc(self) and not self.options.shared and is_msvc_static_runtime(self): | ||
lib += "-mt" | ||
self.cpp_info.libs = [lib] | ||
|
||
if not self.options.shared: | ||
self.cpp_info.defines = ["MYSQL_STATIC"] | ||
self.cpp_info.defines = ["STATIC_CONCPP"] |
12 changes: 12 additions & 0 deletions
12
recipes/mysql-connector-cpp/all/test_package/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
cmake_minimum_required(VERSION 3.15) | ||
# Specify the C++ standard | ||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
|
||
project(PackageTest CXX) | ||
|
||
find_package(mysql-connector-cpp REQUIRED CONFIG) | ||
|
||
add_executable(${PROJECT_NAME} src/example.cpp) | ||
target_link_libraries(${PROJECT_NAME} PRIVATE mysql::concpp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import os | ||
|
||
from conan import ConanFile | ||
from conan.tools.cmake import CMake, cmake_layout | ||
from conan.tools.build import can_run | ||
|
||
|
||
class TestPackageConan(ConanFile): | ||
settings = "os", "compiler", "build_type", "arch" | ||
generators = "CMakeDeps", "CMakeToolchain" | ||
|
||
def requirements(self): | ||
self.requires(self.tested_reference_str) | ||
|
||
def build(self): | ||
cmake = CMake(self) | ||
cmake.configure() | ||
cmake.build() | ||
|
||
def layout(self): | ||
cmake_layout(self) | ||
|
||
def test(self): | ||
if can_run(self): | ||
cmd = os.path.join(self.cpp.build.bindir, "PackageTest") | ||
self.run(cmd, env="conanrun") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include <mysqlx/xdevapi.h> | ||
|
||
int main() | ||
{ | ||
mysqlx::SessionSettings from_url("mysqlx://user:pwd@127.0.0.1:1234/db?ssl-mode=required"); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
versions: | ||
"9.0.0": | ||
folder: all |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are not supporting JDBC? in this PR
#17594
i added support to it.
i think there is still useful to support the old JDBC connector for services that are using mysql server 6x