CrackerSuperior commented on issue #13660:
URL:
https://github.com/apache/shardingsphere/issues/13660#issuecomment-971350234
like this:
``` yaml
rules:
- !SHARDING
tables:
insert3:
actualDataNodes: ds_${0..1}.insert3
keyGenerateStrategy:
column: sharding
keyGeneratorName: snowflake
insert4:
actualDataNodes: ds_${0..1}.insert4
keyGenerateStrategy:
column: sharding
keyGeneratorName: snowflake
defaultDatabaseStrategy:
standard:
shardingColumn: sharding
shardingAlgorithmName: database_inline
shardingAlgorithms:
database_inline:
type: INLINE
props:
algorithm-expression: ds_${sharding % 2}
keyGenerators:
snowflake:
type: SNOWFLAKE
props:
worker-id: 123
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]