Update
public final class Update: CoreRepresentable
The chain call for updating
-
The number of changed rows in the most recent call. It should be called after executing successfully
Declaration
Swift
public var changes: Int?
-
The tag of the related database.
Declaration
Swift
public var tag: Tag?
-
The path of the related database.
Declaration
Swift
public var path: String
-
WINQ interface for SQL
Declaration
Swift
public func `where`(_ condition: Condition) -> Update
Parameters
condition
Expression convertible
Return Value
self
-
WINQ interface for SQL
Declaration
Swift
public func order(by orderList: OrderBy...) -> Update
Parameters
orderList
Expression convertible list
Return Value
self
-
WINQ interface for SQL
Declaration
Swift
public func order(by orderList: [OrderBy]) -> Update
Parameters
orderList
Expression convertible list
Return Value
self
-
WINQ interface for SQL
Declaration
Swift
public func limit(from begin: Limit, to end: Limit) -> Update
Parameters
begin
Expression convertible
end
Expression convertible
Return Value
self
-
WINQ interface for SQL
Declaration
Swift
public func limit(_ limit: Limit) -> Update
Parameters
limit
Expression convertible
Return Value
self
-
WINQ interface for SQL
Declaration
Swift
public func limit(_ limit: Limit, offset: Offset) -> Update
Parameters
limit
Expression convertible
offset
Expression convertible
Return Value
self
-
Execute the update chain call with object.
Throws
Error
Declaration
Swift
public func execute<Object: TableEncodable>(with object: Object) throws
Parameters
object
Table encodable object
-
Execute the update chain call with row.
Throws
Error
Declaration
Swift
public func execute(with row: [ColumnEncodableBase?]) throws
Parameters
row
Column encodable row