mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-14 08:57:27 -06:00
[chore] update go-sqlite3 to v0.19.0 (#3406)
This commit is contained in:
parent
1e421cb912
commit
2c3f1f4ddb
31 changed files with 274 additions and 171 deletions
5
vendor/github.com/ncruces/go-sqlite3/config.go
generated
vendored
5
vendor/github.com/ncruces/go-sqlite3/config.go
generated
vendored
|
|
@ -284,7 +284,10 @@ func walCallback(ctx context.Context, mod api.Module, _, pDB, zSchema uint32, pa
|
|||
//
|
||||
// https://sqlite.org/c3ref/autovacuum_pages.html
|
||||
func (c *Conn) AutoVacuumPages(cb func(schema string, dbPages, freePages, bytesPerPage uint) uint) error {
|
||||
funcPtr := util.AddHandle(c.ctx, cb)
|
||||
var funcPtr uint32
|
||||
if cb != nil {
|
||||
funcPtr = util.AddHandle(c.ctx, cb)
|
||||
}
|
||||
r := c.call("sqlite3_autovacuum_pages_go", uint64(c.handle), uint64(funcPtr))
|
||||
return c.error(r)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue