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
Option Yes
current Transaction
Transaction(ctx context.Context, f func(ctx context.Context, tx TX) error) error
and
Begin(ctx context.Context) (TX, error)
target Transaction
Transaction(ctx context.Context, f func(ctx context.Context, tx TX) error, opts ...*TxOptions) error
Begin(ctx context.Context, opts ...*TxOptions) (TX, error)
I can set the transaction isolation level in "database/sql", but I can't find the corresponding entry in the goframe
import ( "database/sql" ) txOptions := &sql.TxOptions{ Isolation: sql.LevelRepeatableRead, ReadOnly: true, } tx, err := db.BeginTx(ctx, txOptions) if err != nil { // todo } defer tx.Rollback() err = tx.Commit() if err != nil { // todo }
No response
The text was updated successfully, but these errors were encountered:
@LanceAdd Hi, I'm planning adding such feature recently.
Sorry, something went wrong.
gqcn
No branches or pull requests
Is your feature request related to a problem?
Option Yes
Describe the solution you'd like
current Transaction
and
target Transaction
Describe alternatives you've considered
I can set the transaction isolation level in "database/sql", but I can't find the corresponding entry in the goframe
Additional
No response
The text was updated successfully, but these errors were encountered: