We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 db db.Session. How can i do?
tx *sql.Tx
db.Session
The text was updated successfully, but these errors were encountered:
For reference, code is in
db/session.go
Line 70 in cb7617e
To use
internalSQLDriver := sess.Driver().(*sql.DB) tx, err := internalSQLDriver.BeginTx(ctx, &sql.TxOptions{ Isolation: ... ReadOnly: ..., })
Sorry, something went wrong.
No branches or pull requests
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?The text was updated successfully, but these errors were encountered: