mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
Add SetInterrupt to DriverConn.
This commit is contained in:
2
conn.go
2
conn.go
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user