Package io.trino.plugin.mongodb
Class MongoClientModule
java.lang.Object
io.trino.plugin.mongodb.MongoClientModule
- All Implemented Interfaces:
com.google.inject.Module
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(com.google.inject.Binder binder) static MongoSessioncreateMongoSession(TypeManager typeManager, MongoClientConfig config)
-
Constructor Details
-
MongoClientModule
public MongoClientModule()
-
-
Method Details
-
configure
public void configure(com.google.inject.Binder binder) - Specified by:
configurein interfacecom.google.inject.Module
-
createMongoSession
@Singleton @Provides public static MongoSession createMongoSession(TypeManager typeManager, MongoClientConfig config)
-