Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterceptImportMessages ¶
func InterceptImportMessages(t *testing.T, args InterceptArgs) (int, chan ImportQueryError)
InterceptImportMessages sits between PSQL and Doltgres, returning all error messages that are encountered. As we rely on PSQL to handle the import process, we normally wouldn't be able to associate error messages with queries, as this information is not returned by PSQL itself. Therefore, we create our own connection to Doltgres, and a server that PSQL listens to. We then forward everything from PSQL to Doltgres, while inspecting the messages as they come and go.
Types ¶
type ImportQueryError ¶
ImportQueryError contains both a query and its associated error.
Click to show internal directories.
Click to hide internal directories.