Skip to content

Conversation

@2ykwang
Copy link
Member

@2ykwang 2ykwang commented Aug 1, 2025

closes #745

@2ykwang 2ykwang requested a review from hramezani August 1, 2025 17:35
@2ykwang 2ykwang self-assigned this Aug 1, 2025
@codecov
Copy link

codecov bot commented Aug 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.80%. Comparing base (d4d9f28) to head (7c89136).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #744   +/-   ##
=======================================
  Coverage   95.80%   95.80%           
=======================================
  Files          33       33           
  Lines        1144     1144           
=======================================
  Hits         1096     1096           
  Misses         48       48           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@2ykwang 2ykwang marked this pull request as draft August 1, 2025 17:38
@2ykwang 2ykwang force-pushed the support-postgrelsql-docker-test branch from 7c89136 to 0e8e90e Compare August 17, 2025 09:02
@2ykwang 2ykwang marked this pull request as ready for review August 17, 2025 09:28
- Fix TRUNCATE command support detection for different databases
- Add conditional PostgreSQL-specific model registration
- Improve database-specific test skipping logic
- Remove SQLite from TRUNCATE supported vendors list
- Add separate test workflows for SQLite, PostgreSQL, and MySQL
- Add mysqlclient deps
- upload coverage step
@2ykwang 2ykwang force-pushed the support-postgrelsql-docker-test branch from c6caf58 to 3725694 Compare August 17, 2025 09:29
@2ykwang 2ykwang changed the title Add Docker Compose setup and test runner for local PostgreSQL testing Extend CI and local test coverage to MySQL and SQLite Aug 17, 2025

class TruncateQuery:
SUPPORTED_VENDORS = ("postgresql", "mysql", "sqlite", "oracle", "microsoft")
SUPPORTED_VENDORS = ("postgresql", "mysql", "oracle", "microsoft")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you remove sqlite here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SQLite doesn’t support the TRUNCATE query (docs).
I noticed this while running the SQLite tests.
From what I found, DELETE basically works as the replacement.

ref: https://www.sqlite.org/lang_delete.html @hramezani

- Add database type to coverage upload names (SQLite/PostgreSQL/MySQL)
@hramezani hramezani merged commit 8003b06 into master Aug 17, 2025
46 checks passed
@hramezani hramezani deleted the support-postgrelsql-docker-test branch August 17, 2025 14:50
@hramezani
Copy link
Member

Thanks @2ykwang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extend test coverage to MySQL and SQLite

2 participants