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:
parent
f6a616b7e8
commit
dcdf43f0fc
@ -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
|
||||
},
|
||||
},
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user