コード例 #1
0
ファイル: BSONObj.cs プロジェクト: jcyovera/djondb
 public BSONObj(BSONObj orig)
     : this(djonwrapperPINVOKE.new_BSONObj__SWIG_1(BSONObj.getCPtr(orig)), true)
 {
     if (djonwrapperPINVOKE.SWIGPendingException.Pending) throw djonwrapperPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #2
0
ファイル: BSONObj.cs プロジェクト: jcyovera/djondb
 public void add(string arg0, BSONObj arg1)
 {
     djonwrapperPINVOKE.BSONObj_add__SWIG_5(swigCPtr, arg0, BSONObj.getCPtr(arg1));
     if (djonwrapperPINVOKE.SWIGPendingException.Pending) throw djonwrapperPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #3
0
ファイル: BSONObj.cs プロジェクト: jcyovera/djondb
 internal static HandleRef getCPtr(BSONObj obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
コード例 #4
0
ファイル: DjondbConnection.cs プロジェクト: chiehwen/djondb
 public bool update(string db, string ns, BSONObj bson)
 {
     bool ret = djonwrapperPINVOKE.DjondbConnection_update__SWIG_1(swigCPtr, db, ns, BSONObj.getCPtr(bson));
     if (djonwrapperPINVOKE.SWIGPendingException.Pending) throw djonwrapperPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #5
0
ファイル: DjondbConnection.cs プロジェクト: chiehwen/djondb
 public bool insert(string db, string ns, BSONObj obj)
 {
     bool ret = djonwrapperPINVOKE.DjondbConnection_insert__SWIG_1(swigCPtr, db, ns, BSONObj.getCPtr(obj));
     if (djonwrapperPINVOKE.SWIGPendingException.Pending) throw djonwrapperPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #6
0
ファイル: DjondbConnection.cs プロジェクト: jcyovera/djondb
 public BSONArrayObj find(string db, string ns, string select, string filter, BSONObj options)
 {
     IntPtr cPtr = djonwrapperPINVOKE.DjondbConnection_find__SWIG_5(swigCPtr, db, ns, select, filter, BSONObj.getCPtr(options));
     BSONArrayObj ret = (cPtr == IntPtr.Zero) ? null : new BSONArrayObj(cPtr, false);
     if (djonwrapperPINVOKE.SWIGPendingException.Pending) throw djonwrapperPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #7
0
ファイル: BSONArrayObj.cs プロジェクト: chiehwen/djondb
 public void add(BSONObj obj)
 {
     djonwrapperPINVOKE.BSONArrayObj_add(swigCPtr, BSONObj.getCPtr(obj));
     if (djonwrapperPINVOKE.SWIGPendingException.Pending) throw djonwrapperPINVOKE.SWIGPendingException.Retrieve();
 }