Skip to content

Commit

Permalink
Fix the way to get R2DBC connection
Browse files Browse the repository at this point in the history
  • Loading branch information
nakamura-to committed Feb 24, 2022
1 parent b45f515 commit f01a0fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/ja/docs/Reference/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ db.config.session.connection.use { con ->
```

同様に、R2DBCのAPIを直接利用するには`R2dbcDatabase`インスタンスから
いくつかのプロパティを呼び出して`io.r2dbc.spi.Connection``Publisher`を取得します。
いくつかのプロパティを呼び出して`io.r2dbc.spi.Connection`を取得します。

```kotlin
val con: Publisher<out Connection> = db.config.session.connection
val con: Connection = db.config.session.getConnection()
```

{{< alert color="warning" title="Warning" >}}
Expand Down

0 comments on commit f01a0fd

Please sign in to comment.