update sharding-proxy 5.3.2 => 5.4.0 配置文件写法升级

This commit is contained in:
疯狂的狮子Li
2023-08-02 12:26:27 +08:00
parent 6d8cc3495c
commit 83743b04b0
11 changed files with 313 additions and 228 deletions

View File

@@ -16,13 +16,13 @@
#
######################################################################################################
#
#
# Here you can configure the rules for the proxy.
# This example is configuration of shadow rule.
#
#
######################################################################################################
#
#schemaName: shadow_db
#databaseName: shadow_db
#
#dataSources:
# ds:
@@ -46,55 +46,53 @@
#
#rules:
#- !SHADOW
# enable: true
# dataSources:
# shadowDataSource:
# sourceDataSourceName: ds
# productionDataSourceName: ds
# shadowDataSourceName: shadow_ds
# tables:
# t_order:
# dataSourceNames:
# - shadowDataSource
# shadowAlgorithmNames:
# - user-id-insert-match-algorithm
# - user-id-select-match-algorithm
# - user_id_insert_match_algorithm
# - user_id_select_match_algorithm
# t_order_item:
# dataSourceNames:
# - shadowDataSource
# shadowAlgorithmNames:
# - user-id-insert-match-algorithm
# - user-id-update-match-algorithm
# - user-id-select-match-algorithm
# - user_id_insert_match_algorithm
# - user_id_update_match_algorithm
# - user_id_select_match_algorithm
# t_address:
# dataSourceNames:
# - shadowDataSource
# shadowAlgorithmNames:
# - user-id-insert-match-algorithm
# - user-id-select-match-algorithm
# - simple-note-algorithm
# - user_id_insert_match_algorithm
# - user_id_select_match_algorithm
# - sql_hint_algorithm
# shadowAlgorithms:
# user-id-insert-match-algorithm:
# type: COLUMN_REGEX_MATCH
# user_id_insert_match_algorithm:
# type: REGEX_MATCH
# props:
# operation: insert
# column: user_id
# regex: "[1]"
# user-id-update-match-algorithm:
# type: COLUMN_REGEX_MATCH
# user_id_update_match_algorithm:
# type: REGEX_MATCH
# props:
# operation: update
# column: user_id
# regex: "[1]"
# user-id-select-match-algorithm:
# type: COLUMN_REGEX_MATCH
# user_id_select_match_algorithm:
# type: REGEX_MATCH
# props:
# operation: select
# column: user_id
# regex: "[1]"
# simple-note-algorithm:
# type: SIMPLE_NOTE
# sql_hint_algorithm:
# type: SQL_HINT
# props:
# shadow: true
# foo: bar
######################################################################################################
@@ -103,7 +101,7 @@
#
######################################################################################################
#
#schemaName: shadow_db
#databaseName: shadow_db
#
#dataSources:
# ds:
@@ -127,53 +125,51 @@
#
#rules:
#- !SHADOW
# enable: true
# dataSources:
# shadowDataSource:
# sourceDataSourceName: ds
# productionDataSourceName: ds
# shadowDataSourceName: shadow_ds
# tables:
# t_order:
# dataSourceNames:
# - shadowDataSource
# shadowAlgorithmNames:
# - user-id-insert-match-algorithm
# - user-id-select-match-algorithm
# - user_id_insert_match_algorithm
# - user_id_select_match_algorithm
# t_order_item:
# dataSourceNames:
# - shadowDataSource
# shadowAlgorithmNames:
# - user-id-insert-match-algorithm
# - user-id-update-match-algorithm
# - user-id-select-match-algorithm
# - user_id_insert_match_algorithm
# - user_id_update_match_algorithm
# - user_id_select_match_algorithm
# t_address:
# dataSourceNames:
# - shadowDataSource
# shadowAlgorithmNames:
# - user-id-insert-match-algorithm
# - user-id-select-match-algorithm
# - simple-note-algorithm
# - user_id_insert_match_algorithm
# - user_id_select_match_algorithm
# - sql_hint_algorithm
# shadowAlgorithms:
# user-id-insert-match-algorithm:
# type: COLUMN_REGEX_MATCH
# user_id_insert_match_algorithm:
# type: REGEX_MATCH
# props:
# operation: insert
# column: user_id
# regex: "[1]"
# user-id-update-match-algorithm:
# type: COLUMN_REGEX_MATCH
# user_id_update_match_algorithm:
# type: REGEX_MATCH
# props:
# operation: update
# column: user_id
# regex: "[1]"
# user-id-select-match-algorithm:
# type: COLUMN_REGEX_MATCH
# user_id_select_match_algorithm:
# type: REGEX_MATCH
# props:
# operation: select
# column: user_id
# regex: "[1]"
# simple-note-algorithm:
# type: SIMPLE_NOTE
# sql_hint_algorithm:
# type: SQL_HINT
# props:
# shadow: true
# foo: bar