Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
buckelieg authored Jul 11, 2024
1 parent 81b18f2 commit bf35439
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,9 @@ long res = db.update("INSERT INTO TEST(name) VALUES(:name)", entry("name","New_N
```
###### Getting generated keys

To retrieve possible generated keys provide a mappring function to `execute` method:
To retrieve possible generated keys provide a mapping function to `execute` method:
```java
Collection<Long> generatedIds = db.update("INSERT INTO TEST(name) VALUES(?)", "New_Name").execute(rs -> rs.getLong(1));
// generatedIds is a collection of Long values
```
See docs for more options.
### Update
Expand Down

0 comments on commit bf35439

Please sign in to comment.