1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-04-15 13:26:49 +02:00

return conn.Exec error

This commit is contained in:
Gani Georgiev 2023-05-27 09:07:38 +03:00
parent f6a616b7e8
commit dcdf43f0fc

View File

@ -22,7 +22,7 @@ func init() {
sql.Register("sqlite3_with_connect_hook",
&sqlite3.SQLiteDriver{
ConnectHook: func(conn *sqlite3.SQLiteConn) error {
conn.Exec(`
_, err := conn.Exec(`
PRAGMA busy_timeout = 10000;
PRAGMA journal_mode = WAL;
PRAGMA journal_size_limit = 200000000;
@ -30,7 +30,7 @@ func init() {
PRAGMA foreign_keys = ON;
`, nil)
return nil
return err
},
},
)