Skip to content

feat: add a demo of C++ using mysql connector#81

Merged
whhe merged 6 commits intooceanbase:masterfrom
self-consstency:master
Apr 17, 2025
Merged

feat: add a demo of C++ using mysql connector#81
whhe merged 6 commits intooceanbase:masterfrom
self-consstency:master

Conversation

@self-consstency
Copy link
Contributor

Summary

Add a C++ sample demonstrating how to connect to OceanBase using MySQL Connector/C++

Solution Description

This PR adds a new C++ sample that demonstrates:

  1. Basic database operations using MySQL Connector/C++
  2. Connection to OceanBase database
  3. Table creation and data manipulation
  4. Error handling and best practices

The sample includes the following files:

  • c_cplusplus/mysql-connector-cpp/README.md: English documentation
  • c_cplusplus/mysql-connector-cpp/README-CN.md: Chinese documentation
  • c_cplusplus/mysql-connector-cpp/src/mysql_connector_test.cpp: Main source code
  • c_cplusplus/mysql-connector-cpp/run.sh: Build and run script
  • .github/workflows/cpp.yml: C++ specific CI workflow configuration
  • .github/workflows/basic-workflow.yml: Updated to support C++ environment setup

@whhe
Copy link
Member

whhe commented Apr 17, 2025

LGTM

@whhe whhe merged commit e1d59a7 into oceanbase:master Apr 17, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants