derbyjs / racer

Realtime model synchronization engine for Node.js
1.19k stars 118 forks source link

More query methods #31

Closed vmakhaev closed 11 years ago

vmakhaev commented 12 years ago

We have some basic query methods (where, equals...). It`s enough for simply scenarios. Whan about to add some more?

How to get length of collection and not to get all data of it? Some kind of 'count' method would be needed.

There is 'contains' method for seek value in array. For simple search scenarios 'contains' in string method is absolutly needed.

Also some logic as 'and', 'or' don`t harm.

May be worth to stick to mondodb and it`s queries? Then put queries in separete module, so queries for different db can be written in future. Universal queries approach is good, but less expressive.

nateps commented 11 years ago

No longer relevant in 0.5