java.lang.Object
id.luckynetwork.lyrams.lyralibs.core.database.mongo.MongoManager

public class MongoManager extends Object
  • Constructor Details

  • Method Details

    • loadCollection

      public void loadCollection(String key)
      It loads a collection from the database and stores it in a hashmap
      Parameters:
      key - The name of the collection to load
    • getCollection

      public com.mongodb.client.MongoCollection<org.bson.Document> getCollection(String key)
      If the collection is not loaded, load it
      Parameters:
      key - The name of the collection you want to get
      Returns:
      A MongoCollection object