Repository navigation
MSSQL testdb: generated-schema apply hook and snapshot/restore reset - #67
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.
Part of #64 (item 2), bumps to 0.19.0.
ensure_testdb/reset_testdb:apply=callable(conn)andapply_scripts=True(MSSQL only) run generated DDL after or instead of thedatabase/files.snapshot_testdb(name)/restore_testdb(name)use SQL Server database snapshots: files next to the data files (tmpfs-aware) or inPGDEVKIT_TESTDB_MSSQL_SNAPSHOT_DIR; a restore kicks other sessions off and keeps the snapshot. SQL Server only reverts from a database's sole snapshot, so a restore raises when another exists.Live tests cover the round trip (including an open connection), orphan handling and reset.
🤖 Generated with Claude Code
Claude Session: 928b2739-5a21-5fd4-b2a1-23bb76c373be
Docs: the MSSQL testdb section moved from the README to
docs/mssql-testdb.md(README keeps a short pointer).