Protocols

The following protocols are available globally.

  • Undocumented

    See more

    Declaration

    Objective-C

    @protocol OHMySQLMappingProtocol <NSObject>
    
    /// Dictionary that represents class' properties with table' column names.
    - (NSDictionary *)mappingDictionary;
    
    /// Table where current entity can be found.
    - (NSString *)mySQLTable;
    
    /// Returns name of primary property (row).
    - (NSString *)primaryKey;
    
    @end

    Swift

    protocol MySQLMappingProtocol : NSObjectProtocol
  • Deprecated

    Deprecated. Use OHMySQLMappingProtocol (Swift: MySQLMappingProtocol) instead.

    Declaration

    Objective-C

    @protocol OHMappingProtocol <NSObject, OHMySQLMappingProtocol>

    Swift

    protocol MappingProtocol : MySQLMappingProtocol