CodingBingo commented on issue #12307:
URL:
https://github.com/apache/shardingsphere/issues/12307#issuecomment-915918263
> @CodingBingo Single table will not use id generator.
I have a configuration file like this:
```
schemaName: feedDataSource
default: true
dataSources:
ds_feed_0:
url: jdbc:mysql://*******/feeds
dataSourceClassName: com.alibaba.druid.pool.DruidDataSource
username: ****
password: ****
connectionTimeoutMilliseconds: 30000
idleTimeoutMilliseconds: 60000
maxLifetimeMilliseconds: 1800000
maxPoolSize: 50
minPoolSize: 1
rules:
- !SHARDING
tables:
food:
actualDataNodes: ds_feed_0.food
defaultDatabaseStrategy:
none:
defaultTableStrategy:
none:
defaultKeyGenerateStrategy:
column: none
keyGeneratorName: none
props:
sql-show: true
```
I enumerated all single tables in this config file to have full control of
every table. I know that **ShardingSphere** can auto load table from physical
database.
--
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]