Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update doc #240

Merged
merged 6 commits into from Sep 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Expand Up @@ -38,8 +38,8 @@ shardingRule:
defaultKeyGenerator:
type: SNOWFLAKE
column: order_id
props:
sql.show: true
props:
sql.show: true
```

### 获取HintManager
Expand Down Expand Up @@ -124,4 +124,4 @@ try (
```

### example
[hint-example](https://github.com/apache/incubator-shardingsphere-example/tree/dev/sharding-jdbc-example/hint-example)
[hint-example](https://github.com/apache/incubator-shardingsphere-example/tree/4.0.0-RC2/sharding-jdbc-example/other-feature-example/hint-example)
Expand Up @@ -36,8 +36,8 @@ shardingRule:
defaultKeyGenerator:
type: SNOWFLAKE
column: order_id
props:
sql.show: true
props:
sql.show: true
```

### Get HintManager
Expand Down Expand Up @@ -123,4 +123,4 @@ try (

### Example

[hint-example](https://github.com/apache/incubator-shardingsphere-example/tree/dev/sharding-jdbc-example/hint-example)
[hint-example](https://github.com/apache/incubator-shardingsphere-example/tree/4.0.0-RC2/sharding-jdbc-example/other-feature-example/hint-example)
Expand Up @@ -84,21 +84,21 @@ shardingRule:
databaseStrategy:
inline:
shardingColumn: user_id
algorithmInlineExpression: ds${user_id % 2}
algorithmExpression: ds${user_id % 2}
tableStrategy:
inline:
shardingColumn: order_id
algorithmInlineExpression: t_order${order_id % 2}
algorithmExpression: t_order${order_id % 2}
t_order_item:
actualDataNodes: ds${0..1}.t_order_item${0..1}
databaseStrategy:
inline:
shardingColumn: user_id
algorithmInlineExpression: ds${user_id % 2}
algorithmExpression: ds${user_id % 2}
tableStrategy:
inline:
shardingColumn: order_id
algorithmInlineExpression: t_order_item${order_id % 2}
algorithmExpression: t_order_item${order_id % 2}
```

```java
Expand Down
Expand Up @@ -84,21 +84,21 @@ shardingRule:
databaseStrategy:
inline:
shardingColumn: user_id
algorithmInlineExpression: ds${user_id % 2}
algorithmExpression: ds${user_id % 2}
tableStrategy:
inline:
shardingColumn: order_id
algorithmInlineExpression: t_order${order_id % 2}
algorithmExpression: t_order${order_id % 2}
t_order_item:
actualDataNodes: ds${0..1}.t_order_item${0..1}
databaseStrategy:
inline:
shardingColumn: user_id
algorithmInlineExpression: ds${user_id % 2}
algorithmExpression: ds${user_id % 2}
tableStrategy:
inline:
shardingColumn: order_id
algorithmInlineExpression: t_order_item${order_id % 2}
algorithmExpression: t_order_item${order_id % 2}
```

```java
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.