getTxID returns the tx id. Uses cached snowflake node to avoid recreating for every transaction.
()
| 156 | // getTxID returns the tx id. |
| 157 | // Uses cached snowflake node to avoid recreating for every transaction. |
| 158 | func (tx *Tx) getTxID() uint64 { |
| 159 | node := tx.db.getSnowflakeNode() |
| 160 | return uint64(node.Generate().Int64()) |
| 161 | } |
| 162 | |
| 163 | // Commit commits the transaction, following these steps: |
| 164 | // |
no test coverage detected