public static MDBResultCode ThrowOnReadError(this MDBResultCode resultCode)
 {
     if (resultCode == MDBResultCode.NotFound)
     {
         return(resultCode);
     }
     return(resultCode.ThrowOnError());
 }
 public static IEnumerable <ValueTuple <MDBValue, MDBValue> > AsEnumerable(this LightningCursor cursor)
 {
     while (cursor.Next() == MDBResultCode.Success)
     {
         var(resultCode, key, value) = cursor.GetCurrent();
         resultCode.ThrowOnError();
         yield return(key, value);
     }
 }