Type Aliases

The following type aliases are available globally.

  • Defines a ADRecord as a dictionary of Key/Value pairs where the Key is a String and the Value is Any type. A ADRecord can be returned from or sent to a ADDataProvider or any of the Action Codable controls.

    Example:

    let provider = ADSQLiteProvider.shared
    let record = try provider.query("SELECT * FROM Categories WHERE id = ?", withParameters: [1])
    print(record["name"])
    

    Declaration

    Swift

    public typealias ADRecord = [String:Any]
  • Defines an array of ADRecord instances that can be sent to or returned from a ADDataProvider or any of the Action Codable controls.

    Example:

    let provider = ADSQLiteProvider.shared
    let records = try provider.getRows(Category.self)
    
    for record in records {
        print(record["name"])
    }
    

    Declaration

    Swift

    public typealias ADRecordSet = [ADRecord]