Skip to content

Commit 76b989b

Browse files
committed
🔖 release v2.5.0
# 2.5.0 * [FEAT] translate SQLite defaults to MySQL * [FEAT] exclude transferring SQLite tables via `-e`/`--exclude-sqlite-tables`
1 parent 2381b25 commit 76b989b

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 2.5.0
2+
3+
* [FEAT] translate SQLite defaults to MySQL
4+
* [FEAT] exclude transferring SQLite tables via `-e`/`--exclude-sqlite-tables`
5+
16
# 2.4.6
27

38
* [FIX] fix importing `typing_extensions` on Python >= 3.11

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,14 @@ Options:
3737
-t, --sqlite-tables TUPLE Transfer only these specific tables (space
3838
separated table names). Implies --without-
3939
foreign-keys which inhibits the transfer of
40-
foreign keys.
40+
foreign keys. Can not be used together with
41+
--exclude-sqlite-tables.
42+
-e, --exclude-sqlite-tables TUPLE
43+
Transfer all tables except these specific
44+
tables (space separated table names).
45+
Implies --without-foreign-keys which
46+
inhibits the transfer of foreign keys. Can
47+
not be used together with --sqlite-tables.
4148
-X, --without-foreign-keys Do not transfer foreign keys.
4249
-W, --ignore-duplicate-keys Ignore duplicate keys. The default behavior
4350
is to create new ones with a numerical

docs/README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ Connection Options
3434
Transfer Options
3535
""""""""""""""""
3636

37-
- ``-t, --sqlite-tables TUPLE``: Transfer only these specific tables (space separated table names). Implies ``--without-foreign-keys`` which inhibits the transfer of foreign keys.
37+
- ``-t, --sqlite-tables TUPLE``: Transfer only these specific tables (space separated table names). Implies ``--without-foreign-keys`` which inhibits the transfer of foreign keys. Can not be used together with ``--exclude-sqlite-tables``.
38+
- ``-e, --exclude-sqlite-tables TUPLE``: Exclude these specific tables (space separated table names). Implies ``--without-foreign-keys`` which inhibits the transfer of foreign keys. Can not be used together with ``--sqlite-tables``.
3839
- ``-E, --mysql-truncate-tables``: Truncates existing tables before inserting data.
3940
- ``-K, --mysql-skip-create-tables``: Skip creating tables in MySQL.
4041
- ``-i, --mysql-insert-method [UPDATE|IGNORE|DEFAULT]``: MySQL insert method. DEFAULT will throw errors when encountering duplicate records; UPDATE will update existing rows; IGNORE will ignore insert errors. Defaults to IGNORE.

src/sqlite3_to_mysql/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Utility to transfer data from SQLite 3 to MySQL."""
22

3-
__version__ = "2.4.6"
3+
__version__ = "2.5.0"
44

55
from .transporter import SQLite3toMySQL

src/sqlite3_to_mysql/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
type=tuple,
4040
cls=OptionEatAll,
4141
help="Transfer only these specific tables (space separated table names). "
42-
"Implies --without-foreign-keys which inhibits the transfer of foreign keys.",
42+
"Implies --without-foreign-keys which inhibits the transfer of foreign keys. "
43+
"Can not be used together with --exclude-sqlite-tables.",
4344
)
4445
@click.option(
4546
"-e",

0 commit comments

Comments
 (0)