java.lang.Object
io.helidon.dbclient.mongodb.MongoDbClient
- All Implemented Interfaces:
DbClient
MongoDB driver handler.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.dbclient.DbClient
DbClient.Builder -
Method Summary
Modifier and TypeMethodDescriptiondbType()Type of this database provider (such as jdbc:mysql, mongoDB etc.).<U,T extends Subscribable<U>>
TExecute database statement.<U,T extends Subscribable<U>>
TinTransaction(Function<DbTransaction, T> executor) Execute database statements in transaction.<C> Single<C>Unwrap database client internals.
-
Method Details
-
inTransaction
Description copied from interface:DbClientExecute database statements in transaction.- Specified by:
inTransactionin interfaceDbClient- Type Parameters:
U- the type provided by the result typeT- statement execution result type, MUST be either aMultior aSingle, as returned by all APIs of DbClient.- Parameters:
executor- database statement executor, seeDbExecute- Returns:
- statement execution result
-
execute
Description copied from interface:DbClientExecute database statement.- Specified by:
executein interfaceDbClient- Type Parameters:
U- the type provided by the result typeT- statement execution result type, MUST be either aMultior aSingle, as returned by all APIs of DbClient- Parameters:
executor- database statement executor, seeDbExecute- Returns:
- statement execution result
-
dbType
Description copied from interface:DbClientType of this database provider (such as jdbc:mysql, mongoDB etc.). -
unwrap
Description copied from interface:DbClientUnwrap database client internals. Only database connection is supported. Any operations based on this connection are blocking. Reactive support must be implemented in user code.
-