Skip to content

go-sql-driver/sql-test

This branch is 3 commits ahead of, 9 commits behind bradfitz/go-sql-test:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

397cb83 · Mar 20, 2013

History

44 Commits
Jan 13, 2012
Jan 8, 2013
Mar 20, 2013
Mar 20, 2013

Repository files navigation

This project is an integration test, testing various Go database
drivers (for the database/sql package).

To run these tests, in this directory, run:

$ go test -v

or, most of the time, skipping the annoyingly long tests:

$ go test -v -short


****************************************************************************
For MySQL:
****************************************************************************
mysqladmin -uroot -proot create gosqltest

To set set your MySQL user / password run:

$ export GOSQLTEST_MYSQL_USER=user
$ export GOSQLTEST_MYSQL_PASS=password


****************************************************************************
For Postgres: (replacing "bradfitz" with $USER)
****************************************************************************
root@bradfitzlap:/home/bradfitz# su - postgres
postgres@bradfitzlap:~$ psql
postgres=# create database gosqltest;
CREATE DATABASE
postgres=# CREATE USER bradfitz WITH ENCRYPTED PASSWORD 'gosqltest';
CREATE ROLE
postgres=# GRANT ALL PRIVILEGES ON DATABASE gosqltest to bradfitz;
GRANT

About

Test Go SQL-Drivers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%