public int CloseConnection(Connection conn) { IntPtr _conn = conn.GetHandle(); int r = BangDBNative.CloseTableConnection(_table, _conn); BangDBNative.FreeHandle(ref _conn); return r; }
public int CloseTable(DBCloseType flag = DBCloseType.Default) { int r = BangDBNative.CloseThisTable(_table, (int)flag); BangDBNative.FreeHandle(ref _table); _table = IntPtr.Zero; return r; }
public int CloseConnection() { int r = BangDBNative.CloseConnectionW(_wconnection); BangDBNative.FreeHandle(ref _wconnection); _wconnection = IntPtr.Zero; return(r); }
protected virtual void Dispose(bool disposing) { if (disposing) { BangDBNative.FreeHandle(ref _txn); _txn = IntPtr.Zero; } }
public string ListCount_Str() { IntPtr list = IntPtr.Zero; BangDBNative.ListCount2SWEntity(_swentity, out list); string str = Marshal.PtrToStringAnsi(list); BangDBNative.FreeHandle(ref list); return(str); }
public string GetTopKJson(int k = 0) { IntPtr str = IntPtr.Zero; BangDBNative.GetTopkJson(_topk, out str, k); string jstr = Marshal.PtrToStringAnsi(str); BangDBNative.FreeHandle(ref str); return(jstr); }
public void Close() { BangDBNative.CloseSWCount(_swsc, (int)BangDBWindowType.SlidingWindowUnit); BangDBNative.FreeHandle(ref _swsc); _swsc = IntPtr.Zero; }
public void Close() { BangDBNative.CloseTopk(_topk); BangDBNative.FreeHandle(ref _topk); _topk = IntPtr.Zero; }
public void Close() { BangDBNative.CloseSWTable(_swTable); BangDBNative.FreeHandle(ref _swTable); _swTable = IntPtr.Zero; }
public void Clear() { BangDBNative.Clear(_rs); BangDBNative.FreeHandle(ref _rs); _rs = IntPtr.Zero; }