Skip to content

Commit

Permalink
Merge pull request #622 from suzuki/add-existing-strategies
Browse files Browse the repository at this point in the history
Add existing virtual relation strategies to the README
  • Loading branch information
k1LoW authored Oct 8, 2024
2 parents 76d30f8 + 047f569 commit eeab4ec
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -977,27 +977,15 @@ detectVirtualRelations:
strategy: default
```

**`default` strategy:**
##### Supported strategies

``` yaml
detectVirtualRelations:
enabled: true
strategy: default
```

- some_table.user_id -> users.id
- some_table.post_id -> posts.id

**`singularTableName` strategy:**

``` yaml
detectVirtualRelations:
enabled: true
strategy: singularTableName
```
| strategy name | relation from | relation to |
| :-- | :-- | :-- |
| `default` | `some_table.user_id` | `users.id` |
| `singularTableName` | `some_table.user_id` | `user.id` |
| `identical` | `some_table.user_id` | `users.user_id` |
| `identicalSingularTableName` | `some_table.user_id` | `user.user_id` |

- some_table.user_id -> user.id
- some_table.post_id -> post.id

### Dictionary

Expand Down

0 comments on commit eeab4ec

Please sign in to comment.