Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit 8a420f5

Browse files
committed
本文を追加
1 parent 2243c86 commit 8a420f5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,24 @@
44

55
KRowMapper
66
====
7+
This is a `RowMapper` like a `BeanPropertyRowMapper` for `Kotlin`.
8+
You can call `KFunction`(e.g. `method reference`) from `Object`.
9+
10+
```kotlin
11+
// before
12+
val dst = jdbcTemplate.query(query) { rs, _ ->
13+
Dst(
14+
rs.getString("foo"),
15+
rs.getString("bar"),
16+
rs.getInt("baz"),
17+
...
18+
)
19+
}
20+
21+
// after
22+
val dst = jdbcTemplate.query(query, KRowMapper(::Dst))
23+
```
24+
25+
## How to use
26+
Published on JitPack.
27+
Please see [here](https://jitpack.io/#ProjectMapK/KRowMapper/) for the introduction method.

0 commit comments

Comments
 (0)