Insert
public final class Insert: CoreRepresentable
Chain call for inserting
-
The tag of the related database.
Declaration
Swift
public var tag: Tag?
-
The path of the related database.
Declaration
Swift
public var path: String
-
Execute the insert chain call with objects.
Note that it will run embedded transaction while objects.count>1.
The embedded transaction means that it will run a transaction if it’s not in other transaction, otherwise it will be executed within the existing transaction.Throws
ErrorDeclaration
Swift
public func execute<Object: TableEncodable>(with objects: Object...) throws
Parameters
objects
Object to be inserted
-
Execute the insert chain call with objects.
Note that it will run embedded transaction while objects.count>1.
The embedded transaction means that it will run a transaction if it’s not in other transaction, otherwise it will be executed within the existing transaction.Throws
ErrorDeclaration
Swift
public func execute<Object: TableEncodable>(with objects: [Object]) throws
Parameters
objects
Object to be inserted