From 4fa0d412023ffdefc4ba63eecccd4b74e712ff7d Mon Sep 17 00:00:00 2001 From: Daenney Date: Sat, 14 Sep 2024 16:36:25 +0200 Subject: [chore] Update go-sqlite3 to 0.18.3 (#3295) * [chore] Update go-sqlite3 to 0.18.3 * [chore] Fix getting the sqlite3.Conn --- internal/db/sqlite/driver.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/db/sqlite') diff --git a/internal/db/sqlite/driver.go b/internal/db/sqlite/driver.go index cea976d94..ca8ccf8ca 100644 --- a/internal/db/sqlite/driver.go +++ b/internal/db/sqlite/driver.go @@ -25,7 +25,6 @@ import ( "github.com/superseriousbusiness/gotosocial/internal/db" - "github.com/ncruces/go-sqlite3" sqlite3driver "github.com/ncruces/go-sqlite3/driver" _ "github.com/ncruces/go-sqlite3/embed" // embed wasm binary _ "github.com/ncruces/go-sqlite3/vfs/memdb" // include memdb vfs @@ -110,7 +109,7 @@ func (c *sqliteConn) ExecContext(ctx context.Context, query string, args []drive func (c *sqliteConn) Close() (err error) { // Get acces the underlying raw sqlite3 conn. - raw := c.connIface.(sqlite3.DriverConn).Raw() + raw := c.connIface.(sqlite3driver.Conn).Raw() // see: https://www.sqlite.org/pragma.html#pragma_optimize const onClose = "PRAGMA analysis_limit=1000; PRAGMA optimize;" -- cgit v1.2.3