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

Format README #51

Merged
merged 1 commit into from
May 26, 2023
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected function configure(): void
new MediaQueryModule(
Queries::fromDir('/path/to/queryInterface'),[
new DbQueryConfig('/path/to/sql'),
new WebQueryConfig('/path/to/web_query.json', ['domain' => 'api.exmaple.com'])
new WebQueryConfig('/path/to/web_query.json', ['domain' => 'api.example.com'])
],
),
);
Expand Down Expand Up @@ -112,7 +112,7 @@ interface TodoItemInterface
}
```

* 結果がrow`(`array<string, scalar>>`)の場合は`type:'row'`を指定します。`row_list`(`array<int, array<string, scalar>>>`)にはtype指定は不要です。
* 結果が `row`(`array<string, scalar>`)の場合は`type:'row'`を指定します。`row_list`(`array<int, array<string, scalar>>`)にはtype指定は不要です。
* SQLファイルには複数のSQL文が記述できます。その場合には最後の行のSELECTが戻り値になります。

#### Entity
Expand Down Expand Up @@ -205,6 +205,7 @@ final class TodoEntityFactory
return new Todo($id, $this->helper($name));
}
}
```

### Web API

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected function configure(): void
new MediaQueryModule(
Queries::fromDir('/path/to/queryInterface'),[
new DbQueryConfig('/path/to/sql'),
new WebQueryConfig('/path/to/web_query.json', ['domain' => 'api.exmaple.com'])
new WebQueryConfig('/path/to/web_query.json', ['domain' => 'api.example.com'])
],
),
);
Expand Down Expand Up @@ -123,7 +123,7 @@ interface TodoItemInterface
}
```

* If the result is a `row`(`array<string, scalar>>`), specify `type:'row'`. The type is not necessary for `row_list`(`array<int, array<string, scalar>>`).
* If the result is a `row`(`array<string, scalar>`), specify `type:'row'`. The type is not necessary for `row_list`(`array<int, array<string, scalar>>`).
* SQL files can contain multiple SQL statements. In that case, the return value is the last line of the SELECT.

#### Entity
Expand Down