type TxOptions¶
TxOptions 保存在 DB.BeginTx 中使用的事务选项。
TxOptions结构如下:
type TxOptions struct {
// Isolation is the transaction isolation level.
// If zero, the driver or database's default level is used.
Isolation IsolationLevel
ReadOnly bool
}