Package com.massivecraft.mcore.store

Examples of com.massivecraft.mcore.store.Db


  @Override
  public void perform()
  {
    // Args
    final String dbAlias = this.arg(0, ARString.get(), ConfServer.dburi);
    final Db db = MStore.getDb(dbAlias);
    if (db == null)
    {
      msg("<b>could not get the database.");
      return;
    }
   
    // Prepare
    Set<String> collnames = new TreeSet<String>(NaturalOrderComparator.get());
    collnames.addAll(db.getCollnames());
   
    // Do it!
    msg(Txt.titleize("Collections in "+db.getName()));
    for (String collname : collnames)
    {
      String message = Txt.parse("<h>") + collname;
     
      Coll<?> coll = null;
View Full Code Here


  @Override
  public void perform()
  {
    // Args
    final String fromAlias = this.arg(0);
    final Db fromDb = MStore.getDb(fromAlias);
    if (fromDb == null)
    {
      msg("<b>could not get the from-database.");
      return;
    }
   
    final String toAlias = this.arg(1);
    final Db toDb = MStore.getDb(toAlias);
    if (toDb == null)
    {
      msg("<b>could not get the to-database.");
      return;
    }
   
    // Prepare
    final Driver fromDriver = fromDb.getDriver();
    final Driver toDriver = toDb.getDriver();
   
    Set<String> collnames = fromDb.getCollnames();
   
    // Statistics
    int countCollCurrent = 0;
View Full Code Here

TOP

Related Classes of com.massivecraft.mcore.store.Db

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.