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

Commit 6e382df

Browse files
authored
Merge pull request #1 from k163377/add_readme
Add readme.
2 parents a83d06c + 8a420f5 commit 6e382df

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
2+
[![CircleCI](https://circleci.com/gh/ProjectMapK/KRowMapper.svg?style=svg)](https://circleci.com/gh/ProjectMapK/KRowMapper)
3+
[![](https://jitci.com/gh/ProjectMapK/KRowMapper/svg)](https://jitci.com/gh/ProjectMapK/KRowMapper)
4+
5+
KRowMapper
6+
====
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)