Remove deprecations.

This commit is contained in:
Nuno Cruces
2024-03-22 00:24:58 +00:00
parent 0f9ce387b9
commit af7fc3dcb7
5 changed files with 35 additions and 92 deletions

15
conn.go
View File

@@ -368,21 +368,6 @@ func busyCallback(ctx context.Context, mod api.Module, pDB, count uint32) uint32
return 0
}
// Deprecated: executes a PRAGMA statement and returns results.
func (c *Conn) Pragma(str string) ([]string, error) {
stmt, _, err := c.Prepare(`PRAGMA ` + str)
if err != nil {
return nil, err
}
defer stmt.Close()
var pragmas []string
for stmt.Step() {
pragmas = append(pragmas, stmt.ColumnText(0))
}
return pragmas, stmt.Close()
}
func (c *Conn) error(rc uint64, sql ...string) error {
return c.sqlite.error(rc, c.handle, sql...)
}