add go-mssqldb tests #12
Open
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.
This PR adds support for github.com/denisenkom/go-mssqldb, a pure Go driver for SQL Server.
I've updated the README with instructions for creating the database and setting the environment variables that the tests expect to be present.
The tests expect port 1433, the default port for the default SQL Server instance, to be listening on localhost; if the port is not open, then the tests will not run. The tests run against a database named
gosqltest
. The username and password are specified using environment variables namedGOSQLTEST_MSSQL_USER
andGOSQLTEST_MSSQL_PASS
, respectively.GOSQLTEST_MSSQL_USER
must be set, butGOSQLTEST_MSSQL_PASS
does not; the tests will use a default password ofgosqltest
if the environment variable is not set.I ran these tests on an OS X machine that had port 1433 forwarded to a Vagrant machine running SQL Server.