Skip to content

feat: extract repository content readme #21

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

Merged
merged 2 commits into from
Jan 31, 2022
Merged
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
16 changes: 14 additions & 2 deletions tzatziki-spring-jpa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Given that the users table will contain:
| 1 | Darth | Vader |

# or alternatively
Given that the Users entities will contain:
Given that the User entities will contain:
"""
- id: 1
firstName: Darth
Expand Down Expand Up @@ -123,7 +123,7 @@ Then the users table contains:
| 1 | Darth | Vader |

# or alternatively
Then the Users entities contains:
Then the User entities contains:
"""
id: 1
firstName: Darth
Expand Down Expand Up @@ -151,6 +151,18 @@ However, if you wish you can re-enable them with:
But if the triggers are enabled
```

## Getting data

You can get the content of the database with:
```gherkin
Then content is the users table content

# or alternatively
Then content is the User entities
```

The `content` variable created will be a List created from `org.springframework.data.repository.CrudRepository#findAll`

## Resetting the database between tests

The library will automatically reset the database between each test.
Expand Down