Source

mongo-dart / lib / db.dart

Diff from to

lib/db.dart

     connection.execute(message);
   }    
   Future<bool> open(){
+//    print("opening db");
+    if (connection.connected){
+      connection.close();
+      connection = new Connection(serverConfig);
+    }
     return connection.connect();
   }
   Future<Map> executeDbCommand(MongoMessage message){
     return getLastError();
   }
   close(){
+//    print("closing db");
     connection.close();
   }