fix Failed to insert connect attempt:database is locked.

This commit is contained in:
licsber 2025-02-11 16:38:40 +08:00
parent 9aeb98eb45
commit 2cc300fc73
Signed by: licsber
GPG Key ID: 9D7FB88B13C88D84

4
db.go
View File

@ -39,7 +39,9 @@ func initDB() {
client_version TEXT NOT NULL,
username TEXT NOT NULL,
password TEXT NOT NULL
);`
);
PRAGMA busy_timeout = 2000;
`
_, err = db.Exec(createTableSQL)
if err != nil {
log.Fatal(err)