- java.lang.Object
-
- io.helidon.dbclient.mongodb.MongoDbClient
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.helidon.dbclient.DbClient
DbClient.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdbType()Type of this database provider (such as jdbc:mysql, mongoDB etc.).<T extends CompletionStage<?>>
Texecute(Function<DbExecute,T> executor)Execute database statement.<T> CompletionStage<T>inTransaction(Function<DbTransaction,CompletionStage<T>> executor)Execute database statements in transaction.CompletionStage<Void>ping()Pings the database, completes when DB is up and ready, completes exceptionally if not.
-
-
-
Method Detail
-
inTransaction
public <T> CompletionStage<T> inTransaction(Function<DbTransaction,CompletionStage<T>> executor)
Description copied from interface:DbClientExecute database statements in transaction.- Specified by:
inTransactionin interfaceDbClient- Type Parameters:
T- statement execution result type- Parameters:
executor- database statement executor, seeDbExecute- Returns:
- statement execution result
-
execute
public <T extends CompletionStage<?>> T execute(Function<DbExecute,T> executor)
Description copied from interface:DbClientExecute database statement.
-
ping
public CompletionStage<Void> ping()
Description copied from interface:DbClientPings the database, completes when DB is up and ready, completes exceptionally if not.
-
-