インターフェース DatabaseClient

すべてのスーパーインターフェース:
ConnectionAccessor

public interface DatabaseClient extends ConnectionAccessor
Reactive Streams バックプレッシャを使用してデータベース呼び出しを実行するためのノンブロッキングでリアクティブなクライアント。R2DBC クライアントライブラリよりも高レベルの共通 API を提供します。

静的ファクトリメソッド create(ConnectionFactory) を使用するか、ビルダーを取得してインスタンスを作成します。

使用例:

 ConnectionFactory factory = …

 DatabaseClient client = DatabaseClient.create(factory);
 Mono<Actor> actor = client.sql("select first_name, last_name from t_actor")
     .map(row -> new Actor(row.get("first_name", String.class),
          row.get("last_name", String.class)))
     .first();
導入:
5.3
作成者:
Mark Paluch