vendor/Pods/Headers/NanoStore/NSFNanoSearch.h in nano-store-0.5.2 vs vendor/Pods/Headers/NanoStore/NSFNanoSearch.h in nano-store-0.6.0

- old
+ new

@@ -173,11 +173,15 @@ /** * The SQL statement used for searching. Set when executeSQL: is invoked. */ @property (nonatomic, copy, readonly) NSString *sql; /** * The sort holds an array of one or more sort descriptors of type \link NSFNanoSortDescriptor NSFNanoSortDescriptor \endlink. */ @property (nonatomic, strong, readwrite) NSArray *sort; /** * The filterClass allows to filter the results based on a specific object class. */ -@property (nonatomic, strong, readwrite) NSString *filterClass; +@property (nonatomic, copy, readwrite) NSString *filterClass; +/** * If an expression has an offset clause, then the first M rows are omitted from the result set returned by the search operation and the next N rows are returned, where M and N are the values that the offset and limit clauses evaluate to, respectively. Or, if the search would return less than M+N rows if it did not have a limit clause, then the first M rows are skipped and the remaining rows (if any) are returned. */ +@property (nonatomic, assign, readwrite) NSUInteger offset; +/** * The limit clause is used to place an upper bound on the number of rows returned by a Search operation. */ +@property (nonatomic, assign, readwrite) NSUInteger limit; /** @name Creating and Initializing a Search */ //@{ @@ -275,11 +279,11 @@ * * // Instantiate a search and specify the attribute(s) we want to search for * NSFNanoSearch *search = [NSFNanoSearch searchWithStore:nanoStore]; * * // Perform the search - * // The query will be rewritten as @"SELECT NSFKey, NSFPlist, NSFObjectClass FROM NSFKeys" + * // The query will be rewritten as @"SELECT NSFKey, NSFKeyedArchive, NSFObjectClass FROM NSFKeys" * NSDictionary *results = [search executeSQL:@"SELECT foo, bar FROM NSFKeys" returnType:NSFReturnObjects error:nil]; * @endcode * @note The sort descriptor will be ignored when executing custom SQL statements. * @see \link executeSQL: - (NSFNanoResult *)executeSQL:(NSString *)theSQLStatement \endlink */ @@ -377,7 +381,17 @@ */ - (void)reset; //@} + +/** Returns a string representation of the search. + */ + +- (NSString *)description; + +/** Returns a JSON representation of the search. + */ + +- (NSString *)JSONDescription; @end \ No newline at end of file