InsertChainCallInterface
public protocol InsertChainCallInterface
ChainCall interface for inserting
-
prepareInsert(of:intoTable:)
Default implementation -
prepareInsertOrReplace(of:intoTable:)
Default implementationPrepare chain call for inserting or replacing of
TableEncodable
objectThrows
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
-
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
orCodingTableKey
listtable
Table name
Return Value
-
Prepare chain call for inserting or replacing on specific properties
Throws
Error
Declaration
Swift
func prepareInsertOrReplace(on propertyConvertibleList: PropertyConvertible...,
Parameters
propertyConvertibleList
Property
orCodingTableKey
listtable
Table name
Return Value
-
Prepare chain call for inserting on specific properties
Throws
Error
Declaration
Swift
func prepareInsert(on propertyConvertibleList: [PropertyConvertible],
Parameters
propertyConvertibleList
Property
orCodingTableKey
listtable
Table name
Return Value
-
Prepare chain call for inserting or replacing on specific properties
Throws
Error
Declaration
Swift
func prepareInsertOrReplace(on propertyConvertibleList: [PropertyConvertible],
Parameters
propertyConvertibleList
Property
orCodingTableKey
listtable
Table name
Return Value