Commits

Liam Staskawicz  committed 4af1668

* woops - forgot this one in the last commit

  • Participants
  • Parent commits 932bcef

Comments (0)

Files changed (1)

File fan/Mongo.fan

 //
 ////////////////////////////////////////////////////////////////////////////////
 
-
-internal enum MongoOp { 
-  INVALID                   (-1),
-  REPLY                     (1),
-  QUERY_SLAVE_OK            (4),
-  QUERY_NO_CURSOR_TIMEOUT   (16),
-  MSG                       (1000),
-  UPDATE                    (2001),
-  INSERT                    (2002),
-  GET_BY_OID                (2003),
-  QUERY                     (2004),
-  GET_MORE                  (2005),
-  DELETE                    (2006),
-  KILL_CURSORS              (2007)
-  
-  private new make(Int i) { this.opcode = i }
-  const Int opcode
-}
-
 **
 ** Mongo Service.
 **
   const Str address
   const ActorPool processorPool := ActorPool()
   static const Log log := Log.get("mongo")
+  
+  // op values
+  static const Int OP_INVALID                  := -1
+  static const Int OP_REPLY                    := 1
+  static const Int OP_QUERY_SLAVE_OK           := 4
+  static const Int OP_QUERY_NO_CURSOR_TIMEOUT  := 16
+  static const Int OP_MSG                      := 1000
+  static const Int OP_UPDATE                   := 2001
+  static const Int OP_INSERT                   := 2002
+  static const Int OP_GET_BY_OID               := 2003
+  static const Int OP_QUERY                    := 2004
+  static const Int OP_GET_MORE                 := 2005
+  static const Int OP_DELETE                   := 2006
+  static const Int OP_KILL_CURSORS             := 2007
 
   new make(Str address := "127.0.0.1", Int port := 27017)
   {