mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-22 19:43:51 -05:00
5ebc57e0ab
This makes *NomsBlockStore check the incoming Context object to ensure that it itself has been invovled in the appropriate GC lifecycle callbacks. It fixes a problem with statspro.AnalyzeTable, where the GC lifecycle callbacks happened more than once for a single session. It fixes some callsites to appropriately make the GC lifecycle callbacks, including LateBindingQueryist opening one session command for the whole lifetime of the returned sql.Context.
go-sql-server-driver
This is a driver and a test suite for tests interacting with dolt sql-server.
These tests describe a setup for the sql-server(s) which should be running, the
interactions which should be run against the servers, and the assertions which
should pass given those interactions.
This is meant to be more declarative and more robust than using bats for
these integration tests.
Something belongs in this package if it primarily tests interactions with the exposed MySQL port on the sql-server.
Something belongs in bats if it primarily tests interactions with the dolt
binary itself. One example for the dolt sql-server command itself would be
testing config validation which results in exit codes or help text displayed.