> On Sep 26, 2014, at 12:35 AM, peng liu <[email protected]> wrote:
> 
> i have use this framework on my android :
> https://github.com/couchbaselabs/GrocerySync-Android

That's a demo application. The framework is 
https://github.com/couchbase/couchbase-lite-android

> bu i do not know how to query my database (views).
> such as in sql:select *from user where userName = 'wade' and sore > 75?

Have you read the View 
<http://developer.couchbase.com/mobile/develop/guides/couchbase-lite/native-api/view/index.html>
 and Query 
<http://developer.couchbase.com/mobile/develop/guides/couchbase-lite/native-api/query/index.html>
 documentation?

In your example you would create a map function that calls emit([doc.userName, 
doc.score], null), and the query would set the startKey to ["wade", 76] and 
endKey to ["wade", {}].

—Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/8E05459D-E314-44A9-BD61-DD38CD68E195%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to