Skip to content

Commit d594f1d

Browse files
committed
Version 0.7.0.
* Support for MySQL 8.0.31, 8.0.32. * Refacter several.
1 parent 33bbd4d commit d594f1d

File tree

19 files changed

+62
-20
lines changed

19 files changed

+62
-20
lines changed

README.ja.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
# magentadesk - Get MariaDB Table Difference, And Reflect.
1+
# magentadesk - Get MariaDB / MySQL Table Difference, And Reflect.
22

33
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
44

55
### 概要
66

7-
MariaDBの同一ホスト内の2つのデータベースの差分を取り、同期を行います。
7+
MariaDBまたはMySQLの同一ホスト内の2つのデータベースの差分を取り、同期を行います。
88

99
### システム要件
1010

1111
* JDK 1.8 以上
1212
* MariaDB 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11, 11.0, 11.1, 11.2, 11.3, 11.4, 11.5
13+
* MySQL 8.0.31, 8.0.32
1314

1415
### コマンド
1516

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
# magentadesk - Get MariaDB Table Difference, And Reflect.
1+
`# magentadesk - Get MariaDB / MySQL Table Difference, And Reflect.`
22

33
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
44

55
### About
66

7-
Get diff and sync between two databases in same host created by MariaDB.
7+
Get diff and sync between two databases in same host created by MariaDB or MySQL.
88

99
### System Required
1010

1111
* over JDK 1.8
1212
* MariaDB 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11, 11.0, 11.1, 11.2, 11.3, 11.4, 11.5
13+
* MySQL 8.0.31, 8.0.32
1314

1415
### Usage by cli
1516

cli/README.ja.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
* (共通)magentadeskデータベースの作成および、関連テーブルの作成
3131
* (共通)生成から3時間以上経過しているサマリーID関連レコードの削除
32-
* (共通)比較元・比較先の組み合わせで同時実行制御をかける(FOR UPDATE NOWAIT)
32+
* (共通)比較元・比較先の組み合わせで同時実行制御をかける(FOR UPDATE NOWAIT/WAIT
3333
* メンテナンス状態の判定
3434
* 比較対象外とするテーブルの抽出
3535
* 比較対象テーブルの差分抽出およびその時点の差分状態登録
@@ -38,7 +38,7 @@
3838

3939
* (共通)magentadeskデータベースの作成および、関連テーブルの作成
4040
* (共通)生成から3時間以上経過しているサマリーID関連レコードの削除
41-
* (共通)比較元・比較先の組み合わせで同時実行制御をかける(FOR UPDATE NOWAIT)
41+
* (共通)比較元・比較先の組み合わせで同時実行制御をかける(FOR UPDATE NOWAIT/WAIT
4242
* メンテナンス状態の判定
4343
* 抽出された差分の反映
4444
* 任意コマンドの実行
@@ -47,7 +47,7 @@
4747

4848
* (共通)magentadeskデータベースの作成および、関連テーブルの作成
4949
* (共通)生成から3時間以上経過しているサマリーID関連レコードの削除
50-
* (共通)比較元・比較先の組み合わせで同時実行制御をかける(FOR UPDATE NOWAIT)
50+
* (共通)比較元・比較先の組み合わせで同時実行制御をかける(FOR UPDATE NOWAIT/WAIT
5151
* メンテナンス状態の設定
5252

5353

cli/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
* (diff and sync) create magentadesk database, and table.
3131
* (diff and sync) delete from diff recored passed over 3 hours since created.
32-
* (diff and sync) base and compare, lock execute simultaneously. (FOR UPDATE NOWAIT)
32+
* (diff and sync) base and compare, lock execute simultaneously. (FOR UPDATE NOWAIT/WAIT
3333
* check maintenance state between base and compare.
3434
* extract target to diff table.
3535
* register table diff.
@@ -38,7 +38,7 @@
3838

3939
* (diff and sync) create magentadesk database, and table.
4040
* (diff and sync) delete from diff recored passed over 3 hours since created.
41-
* (diff and sync) base and compare, lock execute simultaneously. (FOR UPDATE NOWAIT)
41+
* (diff and sync) base and compare, lock execute simultaneously. (FOR UPDATE NOWAIT/WAIT
4242
* check maintenance state between base and compare.
4343
* sync table diff used by diff.
4444
* execute any commands.
@@ -47,7 +47,7 @@
4747

4848
* (diff and sync) create magentadesk database, and table.
4949
* (diff and sync) delete from diff recored passed over 3 hours since created.
50-
* (diff and sync) base and compare, lock execute simultaneously. (FOR UPDATE NOWAIT)
50+
* (diff and sync) base and compare, lock execute simultaneously. (FOR UPDATE NOWAIT/WAIT
5151
* set maintenance state.
5252

5353

cli/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.walksocket</groupId>
77
<artifactId>magentadesk</artifactId>
8-
<version>0.6.3</version>
8+
<version>0.7.0</version>
99
</parent>
1010
<artifactId>cli</artifactId>
1111
<packaging>jar</packaging>

cli/src/main/resources/help.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
magentadesk for cli - Get MariaDB Table Difference, And Reflect.
1+
magentadesk for cli - Get MariaDB / MySQL Table Difference, And Reflect.
22

33
Usage:
44
echo '${json}' \

doc/json_diff.ja.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ web: request /api/diff/reserve.json
1818
"pass": "pass",
1919
// (必須)文字コード、utf8, utf8mb3 または utf8mb4 のみ
2020
"charset": "utf8mb4",
21-
// (必須)比較元となるデータベース名
21+
// (必須)DBタイプ、mariadb または mysql のみで省略時は、mariadb
22+
"dbType": "mariadb"
2223
// ----- 独自 -----
24+
// (必須)比較元となるデータベース名
2325
"baseDatabase": "base",
2426
// (必須)比較先となるデータベース名
2527
"compareDatabase": "compare",

doc/json_diff.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ web: request /api/diff/reserve.json
1717
"pass":"pass",
1818
// (required) connect charset, 'utf8', 'utf8mb3' or 'utf8mb4' is allowed
1919
"charset":"utf8mb4",
20+
// (required) db type, 'mariadb' or 'mysql' is allowed, 'mariadb' is selected when no input
21+
"dbType": "mariadb"
2022
// (required) base database
2123
"baseDatabase":"base",
2224
// (required) compare database

doc/json_maintenance.ja.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ web: request /api/maintenance/reserve.json
1818
"pass": "pass",
1919
// (必須)文字コード、utf8, utf8mb3 または utf8mb4 のみ
2020
"charset": "utf8mb4",
21-
// (必須)比較元となるデータベース名
21+
// (必須)DBタイプ、mariadb または mysql のみで省略時は、mariadb
22+
"dbType": "mariadb"
2223
// ----- 独自 -----
24+
// (必須)比較元となるデータベース名
2325
"baseDatabase": "base",
2426
// (必須)比較先となるデータベース名
2527
"compareDatabase": "compare",

doc/json_maintenance.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ web: request /api/maintenance/reserve.json
1717
"pass":"pass",
1818
// (required) connect charset, 'utf8', 'utf8mb3' or 'utf8mb4' is allowed
1919
"charset":"utf8mb4",
20+
// (required) db type, 'mariadb' or 'mysql' is allowed, 'mariadb' is selected when no input
21+
"dbType": "mariadb"
2022
// (required) base database
2123
"baseDatabase":"base",
2224
// (required) compare database

0 commit comments

Comments
 (0)