✨ 支持远端 SQLite VFS - #200
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
.opskat.lock文件保护写连接。mainschema 和空 schema 复用同一个远端文件连接,避免重复拨号触发锁冲突。Closes #197
验证
CGO_ENABLED=0 go test ./internal/connpool ./internal/connpool/sqlitevfs -count=1go test ./internal/app/query ./internal/connpool ./internal/connpool/sqlitevfs ./internal/assettype ./internal/model/entity/asset_entity -count=1cd frontend && pnpm exec vitest run src/components/asset/__tests__/DatabaseConfigSection.config.test.ts src/components/asset/__tests__/DatabaseConfigSection.test.tsx src/components/asset/__tests__/SSHConfigSection.test.tsxcd e2e && pnpm run test:scratch scratch/remote-sqlite-ssh.spec.ts,使用root@docker.local验证真实 SSH 远端 SQLite 流程CGO_ENABLED=0 OPSKAT_SQLITEVFS_SFTP_TEST_TARGET=root@docker.local go test ./internal/connpool/sqlitevfs -run TestSFTPRemoteSQLiteIntegration -count=1 -vgit diff --check说明
e2e/scratch/remote-sqlite-ssh.spec.ts是 gitignored 的临时验证脚本,没有提交到 PR。