Closed BeanWei closed 3 years ago
For reference, code is in https://github.com/upper/db/blob/cb7617e42999485f9d94c799ae3fb62585600662/session.go#L70
To use
internalSQLDriver := sess.Driver().(*sql.DB)
tx, err := internalSQLDriver.BeginTx(ctx, &sql.TxOptions{
Isolation: ...
ReadOnly: ...,
})
I write a plugin for my project, but I don't want to rely on upper/db.
I need get the
tx *sql.Tx
from upper dbdb.Session
. How can i do?