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()

5
vendor/modules.txt vendored
View File

@@ -1,4 +1,4 @@
# git.wntrmute.dev/kyle/mcdsl v0.0.0 => /home/kyle/src/metacircular/mcdsl
# git.wntrmute.dev/kyle/mcdsl v1.0.0
## explicit; go 1.25.7
git.wntrmute.dev/kyle/mcdsl/auth
git.wntrmute.dev/kyle/mcdsl/config
@@ -18,6 +18,8 @@ github.com/google/uuid
# github.com/inconshreveable/mousetrap v1.1.0
## explicit; go 1.18
github.com/inconshreveable/mousetrap
# github.com/kr/text v0.2.0
## explicit
# github.com/mattn/go-isatty v0.0.20
## explicit; go 1.15
github.com/mattn/go-isatty
@@ -233,4 +235,3 @@ modernc.org/memory
modernc.org/sqlite
modernc.org/sqlite/lib
modernc.org/sqlite/vtab
# git.wntrmute.dev/kyle/mcdsl => /home/kyle/src/metacircular/mcdsl