示例#1
0
 /// <exception cref="Couchbase.Lite.Storage.SQLException"></exception>
 public static byte[] ByteArrayResultForQuery(ISQLiteStorageEngine database, string query, params string[] args)
 {
     byte[] result = null;
     using (var cursor = database.RawQuery(query, args))
     {
         if (cursor.MoveToNext())
         {
             result = cursor.GetBlob(0);
         }
         return(result);
     }
 }
示例#2
0
 /// <exception cref="Couchbase.Lite.Storage.SQLException"></exception>
 public static byte[] ByteArrayResultForQuery(ISQLiteStorageEngine database, string query, params string[] args)
 {
     byte[] result = null;
     using (var cursor = database.RawQuery(query, args))
     {
         if (cursor.MoveToNext())
         {
             result = cursor.GetBlob(0);
         }
         return result;
     }
 }