add BeginContext

This commit is contained in:
Yasuhiro Matsumoto
2016-11-04 15:15:16 +09:00
parent 025b917610
commit 755d5be32c
2 changed files with 8 additions and 0 deletions

View File

@@ -37,6 +37,10 @@ func (c *SQLiteConn) PrepareContext(ctx context.Context, query string) (driver.S
return c.prepare(ctx, query)
}
func (c *SQLiteConn) BeginContext(ctx context.Context) (driver.Tx, error) {
return c.begin(ctx)
}
func (s *SQLiteStmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error) {
list := make([]namedValue, len(args))
for i, nv := range args {