Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add go-mssqldb tests #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add go-mssqldb tests #12

wants to merge 1 commit into from

Conversation

bhcleek
Copy link

@bhcleek bhcleek commented Jul 20, 2014

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 named GOSQLTEST_MSSQL_USER and GOSQLTEST_MSSQL_PASS, respectively. GOSQLTEST_MSSQL_USER must be set, but GOSQLTEST_MSSQL_PASS does not; the tests will use a default password of gosqltest 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant