InsertChainCallInterface

public protocol InsertChainCallInterface

ChainCall interface for inserting

  • prepareInsert(of:intoTable:) Default implementation

    Prepare chain call for inserting of TableEncodable object

    Throws

    Error

    Default Implementation

    Declaration

    Swift

    func prepareInsert<Root: TableEncodable>(of cls: Root.Type, intoTable table: String) throws -> Insert

    Parameters

    cls

    Type of table codable object

    table

    Table name

    Return Value

    Insert

  • prepareInsertOrReplace(of:intoTable:) Default implementation

    Prepare chain call for inserting or replacing of TableEncodable object

    Throws

    Error

    Default Implementation

    Declaration

    Swift

    func prepareInsertOrReplace<Root: TableEncodable>(of cls: Root.Type, intoTable table: String) throws -> Insert

    Parameters

    cls

    Type of table codable object

    table

    Table name

    Return Value

    Insert

  • Prepare chain call for inserting on specific properties

    Throws

    Error

    Declaration

    Swift

    func prepareInsert(on propertyConvertibleList: PropertyConvertible..., intoTable table: String) throws -> Insert

    Parameters

    propertyConvertibleList

    Property or CodingTableKey list

    table

    Table name

    Return Value

    Insert

  • Prepare chain call for inserting or replacing on specific properties

    Throws

    Error

    Declaration

    Swift

    func prepareInsertOrReplace(on propertyConvertibleList: PropertyConvertible...,

    Parameters

    propertyConvertibleList

    Property or CodingTableKey list

    table

    Table name

    Return Value

    Insert

  • Prepare chain call for inserting on specific properties

    Throws

    Error

    Declaration

    Swift

    func prepareInsert(on propertyConvertibleList: [PropertyConvertible],

    Parameters

    propertyConvertibleList

    Property or CodingTableKey list

    table

    Table name

    Return Value

    Insert

  • Prepare chain call for inserting or replacing on specific properties

    Throws

    Error

    Declaration

    Swift

    func prepareInsertOrReplace(on propertyConvertibleList: [PropertyConvertible],

    Parameters

    propertyConvertibleList

    Property or CodingTableKey list

    table

    Table name

    Return Value

    Insert