shuiyouren / sqlitepersistentobjects

Automatically exported from code.google.com/p/sqlitepersistentobjects
0 stars 0 forks source link

Native queries #80

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This is a feature request. Would it be possible to add native queries? I.e. 
using Objective-C code in 
queries instead of SQL-like strings? For example:

[db fetch: NATIVE_QUERY(obj.age > 30 && [obj.name isEqual: @"xxx"])]

instead of:

[db fetch: @"..."]

A similar concept is used in db4objects for Java/C# and it's really great.

Original issue reported on code.google.com by homol...@gmail.com on 20 Dec 2009 at 9:29