public class MongosKt
@NotNull
public static com.mongodb.client.MongoDatabase getDatabase(@NotNull
java.lang.String databaseNameProperty)
Return the sync database specified in the databaseNameProperty.
if the env or system property is not found, use the databaseNameProperty as database name (remove "_mongo_db" string is present).
databaseNameProperty,
databaseNameProperty@NotNull
public static com.mongodb.reactivestreams.client.MongoDatabase getAsyncDatabase(@NotNull
java.lang.String databaseNameProperty)
Return the async database specified in the databaseNameProperty.
if the env or system property is not found, use the databaseNameProperty as database name (remove "_mongo_db" string is present).
databaseNameProperty,
databaseNamePropertypublic static boolean pingMongoDatabase(@NotNull
com.mongodb.client.MongoDatabase database)