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:DbClient
Execute database statements in transaction.- Specified by:
inTransaction
in interfaceDbClient
- Type Parameters:
U
- the type provided by the result typeT
- statement execution result type, MUST be either aMulti
or aSingle
, as returned by all APIs of DbClient.- Parameters:
executor
- database statement executor, seeDbExecute
- Returns:
- statement execution result
-
execute
Description copied from interface:DbClient
Execute database statement.- Specified by:
execute
in interfaceDbClient
- Type Parameters:
U
- the type provided by the result typeT
- statement execution result type, MUST be either aMulti
or aSingle
, as returned by all APIs of DbClient- Parameters:
executor
- database statement executor, seeDbExecute
- Returns:
- statement execution result
-
dbType
Description copied from interface:DbClient
Type of this database provider (such as jdbc:mysql, mongoDB etc.). -
unwrap
Description copied from interface:DbClient
Unwrap database client internals. Only database connection is supported. Any operations based on this connection are blocking. Reactive support must be implemented in user code.
-