LCQuery
Objective-C
@interface LCQuery : NSObject
Swift
class LCQuery : NSObject
Undocumented
-
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)queryWithClassName:(nonnull NSString *)className; -
Undocumented
Declaration
Objective-C
+ (nullable LCCloudQueryResult *)doCloudQueryWithCQL:(nonnull NSString *)cql;Swift
class func doCloudQuery(withCQL cql: String) -> LCCloudQueryResult? -
Undocumented
Declaration
Objective-C
+ (nullable LCCloudQueryResult *) doCloudQueryWithCQL:(nonnull NSString *)cql error:(NSError *_Nullable *_Nullable)error;Swift
class func doCloudQuery(withCQL cql: String, error: ()) throws -> LCCloudQueryResult -
Undocumented
Declaration
Objective-C
+ (nullable LCCloudQueryResult *) doCloudQueryWithCQL:(nonnull NSString *)cql pvalues:(nullable NSArray *)pvalues error:(NSError *_Nullable *_Nullable)error;Swift
class func doCloudQuery(withCQL cql: String, pvalues: [Any]?) throws -> LCCloudQueryResult -
Undocumented
Declaration
Objective-C
+ (void)doCloudQueryInBackgroundWithCQL:(nonnull NSString *)cql callback:(nonnull LCCloudQueryCallback)callback;Swift
class func doCloudQueryInBackground(withCQL cql: String, callback: @escaping LCCloudQueryCallback) -
Undocumented
Declaration
Objective-C
+ (void)doCloudQueryInBackgroundWithCQL:(nonnull NSString *)cql pvalues:(nullable NSArray *)pvalues callback:(nonnull LCCloudQueryCallback)callback;Swift
class func doCloudQueryInBackground(withCQL cql: String, pvalues: [Any]?, callback: @escaping LCCloudQueryCallback) -
Undocumented
Declaration
Objective-C
- (nonnull instancetype)initWithClassName:(nonnull NSString *)newClassName;Swift
init(className newClassName: String) -
Undocumented
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull className;Swift
var className: String { get set }
-
Undocumented
Declaration
Objective-C
- (void)includeKey:(nonnull NSString *)key;Swift
func includeKey(_ key: String) -
Reset included keys.
Declaration
Objective-C
- (void)resetIncludeKey;Swift
func resetIncludeKey() -
Undocumented
Declaration
Objective-C
- (void)selectKeys:(nonnull NSArray<NSString *> *)keys;Swift
func selectKeys(_ keys: [String]) -
Reset selected keys.
Declaration
Objective-C
- (void)resetSelectKey;Swift
func resetSelectKey() -
Undocumented
Declaration
Objective-C
- (void)whereKeyExists:(nonnull NSString *)key;Swift
func whereKeyExists(_ key: String) -
Undocumented
Declaration
Objective-C
- (void)whereKeyDoesNotExist:(nonnull NSString *)key;Swift
func whereKeyDoesNotExist(_ key: String) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key equalTo:(nonnull id)object;Swift
func whereKey(_ key: String, equalTo object: Any) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key lessThan:(nonnull id)object;Swift
func whereKey(_ key: String, lessThan object: Any) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key lessThanOrEqualTo:(nonnull id)object;Swift
func whereKey(_ key: String, lessThanOrEqualTo object: Any) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key greaterThan:(nonnull id)object;Swift
func whereKey(_ key: String, greaterThan object: Any) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key greaterThanOrEqualTo:(nonnull id)object;Swift
func whereKey(_ key: String, greaterThanOrEqualTo object: Any) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key notEqualTo:(nonnull id)object;Swift
func whereKey(_ key: String, notEqualTo object: Any) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key containedIn:(nonnull NSArray *)array;Swift
func whereKey(_ key: String, containedIn array: [Any]) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key notContainedIn:(nonnull NSArray *)array;Swift
func whereKey(_ key: String, notContainedIn array: [Any]) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key containsAllObjectsInArray:(nonnull NSArray *)array;Swift
func whereKey(_ key: String, containsAllObjectsIn array: [Any])
-
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key nearGeoPoint:(nonnull LCGeoPoint *)geoPoint;Swift
func whereKey(_ key: String, nearGeoPoint geoPoint: LCGeoPoint) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key nearGeoPoint:(nonnull LCGeoPoint *)geoPoint withinMiles:(double)maxDistance;Swift
func whereKey(_ key: String, nearGeoPoint geoPoint: LCGeoPoint, withinMiles maxDistance: Double) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key nearGeoPoint:(nonnull LCGeoPoint *)geoPoint withinKilometers:(double)maxDistance;Swift
func whereKey(_ key: String, nearGeoPoint geoPoint: LCGeoPoint, withinKilometers maxDistance: Double) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key nearGeoPoint:(nonnull LCGeoPoint *)geoPoint withinRadians:(double)maxDistance;Swift
func whereKey(_ key: String, nearGeoPoint geoPoint: LCGeoPoint, withinRadians maxDistance: Double) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key nearGeoPoint:(nonnull LCGeoPoint *)geoPoint maxDistance:(double)maxDistance maxDistanceUnit:(LCQueryDistanceUnit)maxDistanceUnit minDistance:(double)minDistance minDistanceUnit:(LCQueryDistanceUnit)minDistanceUnit;Swift
func whereKey(_ key: String, nearGeoPoint geoPoint: LCGeoPoint, maxDistance: Double, maxDistanceUnit: LCQueryDistanceUnit, minDistance: Double, minDistanceUnit: LCQueryDistanceUnit) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key nearGeoPoint:(nonnull LCGeoPoint *)geoPoint minDistance:(double)minDistance minDistanceUnit:(LCQueryDistanceUnit)minDistanceUnit;Swift
func whereKey(_ key: String, nearGeoPoint geoPoint: LCGeoPoint, minDistance: Double, minDistanceUnit: LCQueryDistanceUnit) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key withinGeoBoxFromSouthwest:(nonnull LCGeoPoint *)southwest toNortheast:(nonnull LCGeoPoint *)northeast;Swift
func whereKey(_ key: String, withinGeoBoxFromSouthwest southwest: LCGeoPoint, toNortheast northeast: LCGeoPoint)
-
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key matchesRegex:(nonnull NSString *)regex;Swift
func whereKey(_ key: String, matchesRegex regex: String) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key matchesRegex:(nonnull NSString *)regex modifiers:(nullable NSString *)modifiers;Swift
func whereKey(_ key: String, matchesRegex regex: String, modifiers: String?) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key containsString:(nonnull NSString *)substring;Swift
func whereKey(_ key: String, contains substring: String) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key hasPrefix:(nonnull NSString *)prefix;Swift
func whereKey(_ key: String, hasPrefix prefix: String) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key hasSuffix:(nonnull NSString *)suffix;Swift
func whereKey(_ key: String, hasSuffix suffix: String)
-
Undocumented
Declaration
Objective-C
+ (nullable LCQuery *)orQueryWithSubqueries: (nonnull NSArray<LCQuery *> *)queries;Swift
class func orQuery(withSubqueries queries: [LCQuery]) -> LCQuery? -
Undocumented
Declaration
Objective-C
+ (nullable LCQuery *)andQueryWithSubqueries: (nonnull NSArray<LCQuery *> *)queries;Swift
class func andQuery(withSubqueries queries: [LCQuery]) -> LCQuery? -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key matchesKey:(nonnull NSString *)otherKey inQuery:(nonnull LCQuery *)query;Swift
func whereKey(_ key: String, matchesKey otherKey: String, in query: LCQuery) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key doesNotMatchKey:(nonnull NSString *)otherKey inQuery:(nonnull LCQuery *)query;Swift
func whereKey(_ key: String, doesNotMatchKey otherKey: String, in query: LCQuery) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key matchesQuery:(nonnull LCQuery *)query;Swift
func whereKey(_ key: String, matchesQuery query: LCQuery) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key doesNotMatchQuery:(nonnull LCQuery *)query;Swift
func whereKey(_ key: String, doesNotMatch query: LCQuery) -
Undocumented
Declaration
Objective-C
- (void)whereKey:(nonnull NSString *)key sizeEqualTo:(NSUInteger)count;Swift
func whereKey(_ key: String, sizeEqualTo count: UInt)
-
Undocumented
Declaration
Objective-C
- (void)orderByAscending:(nonnull NSString *)key;Swift
func order(byAscending key: String) -
Undocumented
Declaration
Objective-C
- (void)addAscendingOrder:(nonnull NSString *)key;Swift
func addAscendingOrder(_ key: String) -
Undocumented
Declaration
Objective-C
- (void)orderByDescending:(nonnull NSString *)key;Swift
func order(byDescending key: String) -
Undocumented
Declaration
Objective-C
- (void)addDescendingOrder:(nonnull NSString *)key;Swift
func addDescendingOrder(_ key: String) -
Undocumented
Declaration
Objective-C
- (void)orderBySortDescriptor:(nonnull NSSortDescriptor *)sortDescriptor;Swift
func order(by sortDescriptor: NSSortDescriptor) -
Undocumented
Declaration
Objective-C
- (void)orderBySortDescriptors:(nonnull NSArray *)sortDescriptors;Swift
func order(bySortDescriptors sortDescriptors: [Any])
-
Undocumented
Declaration
Objective-C
- (void)getObjectInBackgroundWithId:(nonnull NSString *)objectId block:(nonnull LCObjectResultBlock)block;Swift
func getObjectInBackground(withId objectId: String, block: @escaping LCObjectResultBlock)
-
Undocumented
Declaration
Objective-C
- (nullable NSArray *)findObjects;Swift
func findObjects() -> [Any]? -
Undocumented
Declaration
Objective-C
- (nullable NSArray *)findObjects:(NSError *_Nullable *_Nullable)error;Swift
func findObjects(_ error: NSErrorPointer) -> [Any]? -
Undocumented
Declaration
Objective-C
- (nullable NSArray *)findObjectsAndThrowsWithError: (NSError *_Nullable *_Nullable)error;Swift
func findObjectsAndThrows() throws -> [Any] -
Undocumented
Declaration
Objective-C
- (void)findObjectsInBackgroundWithBlock:(nonnull LCArrayResultBlock)block;Swift
func findObjectsInBackground() async throws -> [Any] -
Undocumented
Declaration
Objective-C
- (void)deleteAllInBackgroundWithBlock:(nonnull LCBooleanResultBlock)block;Swift
func deleteAllInBackground() async throws -> Bool
-
Undocumented
Declaration
Objective-C
- (void)getFirstObjectInBackgroundWithBlock:(nonnull LCObjectResultBlock)block;Swift
func firstObjectInBackground() async throws -> LCObject
-
Undocumented
Declaration
Objective-C
- (NSInteger)countObjects;Swift
func countObjects() -> Int -
Undocumented
Declaration
Objective-C
- (NSInteger)countObjects:(NSError *_Nullable *_Nullable)error;Swift
func countObjects(_ error: NSErrorPointer) -> Int -
Undocumented
Declaration
Objective-C
- (NSInteger)countObjectsAndThrowsWithError: (NSError *_Nullable *_Nullable)error;Swift
func countObjectsAndThrowsWithError(_ error: NSErrorPointer) -> Int -
Undocumented
Declaration
Objective-C
- (void)countObjectsInBackgroundWithBlock:(nonnull LCIntegerResultBlock)block;Swift
func countObjectsInBackground() async throws -> Int
-
Undocumented
Declaration
Objective-C
- (void)cancel;Swift
func cancel()
-
Declaration
Objective-C
@property (nonatomic) NSInteger limit;Swift
var limit: Int { get set } -
Undocumented
Declaration
Objective-C
@property (nonatomic) NSInteger skip;Swift
var skip: Int { get set } -
Include ACL for object.
Declaration
Objective-C
@property (nonatomic) BOOL includeACL;Swift
var includeACL: Bool { get set }
-
Undocumented
Declaration
Objective-C
@property LCCachePolicy cachePolicy;Swift
var cachePolicy: LCCachePolicy { get set } -
Undocumented
Declaration
Objective-C
@property NSTimeInterval maxCacheAgeSwift
var maxCacheAge: TimeInterval { get set } -
Undocumented
Declaration
Objective-C
- (BOOL)hasCachedResult;Swift
func hasCachedResult() -> Bool -
Undocumented
Declaration
Objective-C
- (void)clearCachedResult;Swift
func clearCachedResult() -
Undocumented
Declaration
Objective-C
+ (void)clearAllCachedResults;Swift
class func clearAllCachedResults()
-
Undocumented
Declaration
Objective-C
@property (nonatomic) BOOL trace;Swift
var trace: Bool { get set }
View on GitHub
Install in Dash
LCQuery Class Reference