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

zj8487 picture zj8487  ·  19Comments

cihangir picture cihangir  ·  19Comments

ajays20078 picture ajays20078  ·  15Comments

MikeJinhua picture MikeJinhua  ·  14Comments

wahyuhadi picture wahyuhadi  ·  18Comments