Exemplo n.º 1
0
 public Status Remove(WriteOptions options, string key)
 {
     Status ret = new Status(LeveldbPINVOKE.DBAccessor_Remove(swigCPtr, WriteOptions.getCPtr(options), key), true);
     if (LeveldbPINVOKE.SWIGPendingException.Pending) throw LeveldbPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 2
0
 public Status Write(WriteOptions options, DBWriteBatch updates)
 {
     Status ret = new Status(LeveldbPINVOKE.DBAccessor_Write(swigCPtr, WriteOptions.getCPtr(options), DBWriteBatch.getCPtr(updates)), true);
     if (LeveldbPINVOKE.SWIGPendingException.Pending) throw LeveldbPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 3
0
 public Status getStatus()
 {
     Status ret = new Status(LeveldbPINVOKE.DBTableBuilder_getStatus(swigCPtr), true);
     return ret;
 }
Exemplo n.º 4
0
 public Status Open(Options options, string name)
 {
     Status ret = new Status(LeveldbPINVOKE.DBAccessor_Open(swigCPtr, Options.getCPtr(options), name), true);
     if (LeveldbPINVOKE.SWIGPendingException.Pending) throw LeveldbPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 5
0
 public Status add(string key, string value)
 {
     Status ret = new Status(LeveldbPINVOKE.DBTableBuilder_add(swigCPtr, key, value), true);
     if (LeveldbPINVOKE.SWIGPendingException.Pending) throw LeveldbPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 6
0
 public Status finish()
 {
     Status ret = new Status(LeveldbPINVOKE.DBTableBuilder_finish(swigCPtr), true);
     return ret;
 }
Exemplo n.º 7
0
 public Status setOptions(Options options)
 {
     Status ret = new Status(LeveldbPINVOKE.DBTableBuilder_setOptions(swigCPtr, Options.getCPtr(options)), true);
     if (LeveldbPINVOKE.SWIGPendingException.Pending) throw LeveldbPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 8
0
 public Status open(string fname)
 {
     Status ret = new Status(LeveldbPINVOKE.DBTableBuilder_open(swigCPtr, fname), true);
     if (LeveldbPINVOKE.SWIGPendingException.Pending) throw LeveldbPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 9
0
 public Status status()
 {
     Status ret = new Status(LeveldbPINVOKE.DBIterator_status(swigCPtr), true);
     return ret;
 }
Exemplo n.º 10
0
 public static Status RepairDB(string dbname, Options options)
 {
     Status ret = new Status(LeveldbPINVOKE.RepairDB(dbname, Options.getCPtr(options)), true);
     if (LeveldbPINVOKE.SWIGPendingException.Pending) throw LeveldbPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 11
0
 internal static HandleRef getCPtr(Status obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }