Comment 1 for bug 1168034

Revision history for this message
Kevin Wright (kevin-wright-1) wrote : Re: u1db-qt-example-5.qml doesn’t demonstrate anything useful

The U1db.Query property "query" does not yet work as it is under development (which is why it is commented out in the example). This will be at least a few more days before the Query capabilities are working properly.

What the example demonstrates is more the functionality of the U1db.Index element, such as how to find records based on fields and sub-fields. Once Query has the "query" property working properly then exact match and wildcard searches will be possible, in addition to working together with the Index element.

It does not necessarily return the entire database, depending on the strucure of the documents in the database. If there is very little data then it might appear so, but if the structure of the data is more complex, and there is more data it is much more obvious that not the entire database is being returned.