novel-front

master
ASUS 6 months ago
parent fb9bb2f949
commit 5636206d80

@ -1,47 +1,71 @@
# ====================== ======================
mode:
#
#
# Standalone -
# Cluster -
type: Standalone
#
#
repository:
#
#
# JDBC - 使
# ZooKeeper - 使ZooKeeper
type: JDBC
#
# ====================== ======================
dataSources:
#
ds_1:
# 使Hikari
dataSourceClassName: com.zaxxer.hikari.HikariDataSource
#
driverClassName: com.mysql.cj.jdbc.Driver
# URL
jdbcUrl: jdbc:mysql://localhost:3306/novel_plus?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
#
username: root
#
password: test123456
#
# ====================== ======================
rules:
# 1
- !SINGLE
tables:
# *.*
# 使
- "*.*"
# 2
- !SHARDING
tables: #
tables: #
# book_content
book_content:
# 使
#
# ds_${1} ds_1
# book_content${0..9} 10book_content0book_content9
actualDataNodes: ds_${1}.book_content${0..9}
#
tableStrategy:
standard:
#
#
shardingColumn: index_id
#
#
shardingAlgorithmName: bookContentSharding
#
shardingAlgorithms:
# bookContentSharding
bookContentSharding:
# 使 Groovy SQL = IN
# INLINE
type: INLINE
props:
#
# Groovy
# index_id10
algorithm-expression: book_content${index_id % 10}
# ====================== ======================
props:
# SQL
sql-show: true
# SQL
sql-show: true
Loading…
Cancel
Save