Gorm: add Context

Created on 19 Mar 2018  路  3Comments  路  Source: go-gorm/gorm

Support Context :
BeginTx(ctx context.Context, opts TxOptions) (Tx, error)
ExecContext(ctx context.Context, query string, args ...interface{}) (Result, error)
PrepareContext(ctx context.Context, query string) (Stmt, error)
QueryContext(ctx context.Context, query string, args ...interface{}) (
Rows, error)
QueryRowContext(ctx context.Context, query string, args ...interface{}) *Row

duplicated

Most helpful comment

That's from 2 years ago, is gorm never gonna support context? Are we waiting for a PR or is there a general objection to add context support?

All 3 comments

I think this duplicates #1231

That's from 2 years ago, is gorm never gonna support context? Are we waiting for a PR or is there a general objection to add context support?

Seems like there is some movement over there with some code available to be merged... let's close this and track it in #1231

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Quentin-M picture Quentin-M  路  3Comments

satb picture satb  路  3Comments

izouxv picture izouxv  路  3Comments

alanyuen picture alanyuen  路  3Comments

superwf picture superwf  路  3Comments