Use published mcdsl v1.0.0, drop replace directive

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-26 12:23:59 -07:00
parent af8cebd97e
commit 5a22f7dd0b
4 changed files with 31 additions and 8 deletions

View File

@@ -59,6 +59,12 @@ func Open(path string) (*sql.DB, error) {
}
}
// SQLite supports concurrent readers but only one writer. With WAL mode,
// reads don't block writes, but multiple Go connections competing for
// the write lock causes SQLITE_BUSY under concurrent load. Limit to one
// connection to serialize all access and eliminate busy errors.
database.SetMaxOpenConns(1)
// Ensure permissions are correct even if the file already existed.
if err := os.Chmod(path, 0600); err != nil {
_ = database.Close()