Closed techouse closed 4 months ago
The mysql2sqlite
tool has been updated to version 2.1.12, introducing a new CLI option -Z, --without-tables
to focus on data transfer without table structures. This update includes changes to the CLI, transporter logic, and tests to support the new functionality, ensuring robust error handling and accurate data migration.
Files | Change Summary |
---|---|
README.md , docs/README.rst |
Added documentation for the new -Z, --without-tables option. |
src/mysql_to_sqlite3/cli.py |
Introduced -Z/--without-tables option and updated CLI logic to handle the new parameter. |
src/mysql_to_sqlite3/transporter.py |
Modified parameter handling and transfer logic to support without_tables and without_data . |
src/mysql_to_sqlite3/types.py |
Added new without_tables parameter to MySQLtoSQLiteParams and _without_tables attribute. |
tests/func/mysql_to_sqlite3_test.py |
Added test_without_tables_and_without_data to verify behaviour with the new option. |
tests/func/test_cli.py |
Added test_without_data and test_without_tables to test CLI interactions with new options. |
sequenceDiagram
participant User
participant CLI
participant Transporter
participant MySQL
participant SQLite
User->>CLI: Execute mysql2sqlite with -Z/--without-tables
CLI->>Transporter: Pass parameters including without_tables=True
Transporter->>MySQL: Fetch data without table structures
MySQL-->>Transporter: Return data
Transporter->>SQLite: Insert data into existing tables
SQLite-->>Transporter: Confirm data insertion
Transporter-->>CLI: Transfer complete
CLI-->>User: Success message
In the realm of data's flow, Where tables used to grow, Now a new flag leads the way,
-Z
to clear the fray. Transfer data, pure and bright, No tables in sight, A rabbit's joy, in code's delight! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Attention: Patch coverage is 95.83333%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 87.07%. Comparing base (
9af779f
) to head (6954d35
).
Files | Patch % | Lines |
---|---|---|
src/mysql_to_sqlite3/cli.py | 66.66% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
This PR adds the option
--without-tables
which enables a user to skip table creation and transfer only data.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
CLI and function tests.
Checklist: