Repository navigation
test(orm): cover synchronous CRUD on real MySQL - #106
Merged
Merged
Conversation
Add orm_mysql_func under the same exit-3 URL contract as the db remote-backend tests, exclude it when the MySQL backend is not compiled, and extend the Ubuntu db-servers job with ORM=ON so the test runs against its MySQL 8 service. Document that PostgreSQL and ODBC ORM coverage is still open.
Owner
Author
|
Local review before merge: 24/24 checks against a real MySQL 8.0.46 server, target is absent when MySQL is not compiled, URL-less run is ctest-Skipped, strict C++11 compiles clean, and docs/CI gates pass. PostgreSQL/ODBC and MySQL transactions/async are explicitly not claimed. |
This was referenced Nov 27, 2026
Closed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Part of #93. Parent: #88.
What changed
tests/functional/orm_mysql_func.cpp: real MySQL synchronous ORM CRUD — create table, auto-increment id, point lookup,nullablereset, UPDATE,find_all+ total, COUNT, DELETE, unique-key error pass-through, and find-after-delete =NOT_FOUND.UVCPP_ORM_TEST_MYSQL_URL, falling back toUVCPP_DB_TEST_MYSQL_URL; no URL → exit 3 (Skipped),UVCPP_DB_TEST_REQUIRE=1→ exit 1. It is excluded from the target list when the MySQL backend is not compiled, so there is no green SKIP.db-serversjob now passes-DUVCPP_BUILD_ORM=ONand requirestest_orm_mysql_funcregistration alongside the existing MySQL/PostgreSQL/MongoDB db tests.doc/ci-guide.mdanddoc/orm-guide.mdrecord exactly what is covered: real MySQL synchronous ORM CRUD; PostgreSQL ORM CRUD, transactions, async and ODBC remain unverified.Verification
Real MySQL 8.0.46, unprivileged temporary instance on
127.0.0.1:33099:ctest with URL:
ctest without URL:
Strict C++11:
MySQL backend excluded from a SQLite-only tree:
Docs/CI gates:
Unverified