Files
sqlite3/stmt.go

22 lines
291 B
Go
Raw Normal View History

2023-01-15 04:35:37 +00:00
package sqlite3
import "context"
type Stmt struct {
c *Conn
handle uint32
}
func (s *Stmt) Close() error {
r, err := s.c.api.finalize.Call(context.TODO(), uint64(s.handle))
if err != nil {
return err
}
s.handle = 0
if r[0] != OK {
return s.c.error(r[0])
}
return nil
}