LCCQLClient
public final class LCCQLClient
CQL client.
CQLClient allow you to use CQL (Cloud Query Language) to make CRUD for object.
-
Execute CQL statement synchronously.
Declaration
Swift
public static func execute( application: LCApplication = LCApplication.default, _ cql: String, parameters: LCArrayConvertible? = nil) -> LCCQLResult
Parameters
cql
The CQL statement to be executed.
parameters
The parameters for placeholders in CQL statement.
Return Value
The result of CQL statement.
-
Execute CQL statement asynchronously.
Declaration
Swift
@discardableResult public static func execute( application: LCApplication = .default, _ cql: String, parameters: LCArrayConvertible? = nil, completionQueue: DispatchQueue = .main, completion: @escaping (_ result: LCCQLResult) -> Void) -> LCRequest
Parameters
cql
The CQL statement to be executed.
parameters
The parameters for placeholders in CQL statement.
completion
The completion callback closure.