1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
// Code generated by "stringer -type=transactionFlagType"; DO NOT EDIT.
package protocol
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[tfRolledback-0]
_ = x[tfCommited-1]
_ = x[tfNewIsolationLevel-2]
_ = x[tfDDLCommitmodeChanged-3]
_ = x[tfWriteTransactionStarted-4]
_ = x[tfNowriteTransactionStarted-5]
_ = x[tfSessionClosingTransactionError-6]
}
const _transactionFlagType_name = "tfRolledbacktfCommitedtfNewIsolationLeveltfDDLCommitmodeChangedtfWriteTransactionStartedtfNowriteTransactionStartedtfSessionClosingTransactionError"
var _transactionFlagType_index = [...]uint8{0, 12, 22, 41, 63, 88, 115, 147}
func (i transactionFlagType) String() string {
if i < 0 || i >= transactionFlagType(len(_transactionFlagType_index)-1) {
return "transactionFlagType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _transactionFlagType_name[_transactionFlagType_index[i]:_transactionFlagType_index[i+1]]
}
|