/// <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); } }
/// <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; } }