TxReport
open class TxReport : RustObject
This class wraps a raw pointer that points to a Rust TxReport object.
The TxReport contains information about a successful Mentat transaction.
This information includes:
txId- the identifier for the transaction.txInstant- the time that the transaction occured.- a map of temporary identifiers provided in the transaction and the
Entids that they were mapped to,
Access an Entid for a temporary identifier that was provided in the transaction can be done through entid(String:).
let report = mentat.transact("[[:db/add "a" :foo/boolean true]]")
let aEntid = report.entid(forTempId: "a")
-
Undocumented
Declaration
Swift
open var txId: Entid { get } -
Undocumented
Declaration
Swift
open var txInstant: Date { get } -
Access an
Entidfor a temporary identifier that was provided in the transaction.Declaration
Swift
open func entid(forTempId tempId: String) -> Entid?Parameters
tempIdA
Stringrepresenting the temporary identifier to fetch theEntidfor.Return Value
The
Entidfor the temporary identifier, if present, otherwisenil. -
Undocumented
Declaration
Swift
override open func cleanup(pointer: OpaquePointer)
TxReport Class Reference