From 047f569a53126c51c3d2fc4489ec88ed111667e0 Mon Sep 17 00:00:00 2001 From: Norio Suzuki Date: Tue, 8 Oct 2024 08:56:24 +0900 Subject: [PATCH] Add existing virtual relation strategies to the README --- README.md | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 3dbbefff..e6234419 100644 --- a/README.md +++ b/README.md @@ -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