Add SetInterrupt to DriverConn.

This commit is contained in:
Nuno Cruces
2023-05-17 14:29:59 +01:00
parent c94cdaf720
commit 6846b72b31
2 changed files with 6 additions and 0 deletions

View File

@@ -334,4 +334,6 @@ type DriverConn interface {
Savepoint() Savepoint
OpenBlob(db, table, column string, row int64, write bool) (*Blob, error)
SetInterrupt(ctx context.Context) (old context.Context)
}

View File

@@ -224,6 +224,10 @@ func (c conn) OpenBlob(db, table, column string, row int64, write bool) (*sqlite
return c.conn.OpenBlob(db, table, column, row, write)
}
func (c conn) SetInterrupt(ctx context.Context) (old context.Context) {
return c.conn.SetInterrupt(ctx)
}
type stmt struct {
stmt *sqlite3.Stmt
conn *sqlite3.Conn