{"id":16884777,"url":"https://github.com/bradfitz/go-sql-test","last_synced_at":"2025-03-17T06:31:35.662Z","repository":{"id":2208562,"uuid":"3157575","full_name":"bradfitz/go-sql-test","owner":"bradfitz","description":"test ALL the databases","archived":false,"fork":false,"pushed_at":"2019-04-01T16:47:29.000Z","size":358,"stargazers_count":132,"open_issues_count":5,"forks_count":28,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-08T22:42:48.456Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://code.google.com/p/go-sql-test/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bradfitz.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-11T21:39:49.000Z","updated_at":"2025-02-28T03:01:49.000Z","dependencies_parsed_at":"2022-09-08T07:50:44.947Z","dependency_job_id":null,"html_url":"https://github.com/bradfitz/go-sql-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradfitz%2Fgo-sql-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradfitz%2Fgo-sql-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradfitz%2Fgo-sql-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradfitz%2Fgo-sql-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradfitz","download_url":"https://codeload.github.com/bradfitz/go-sql-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243847062,"owners_count":20357317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T16:30:36.213Z","updated_at":"2025-03-17T06:31:35.117Z","avatar_url":"https://github.com/bradfitz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"This project is an integration test, testing various Go database\ndrivers (for the database/sql package).\n\nTo run these tests, in this directory, run:\n\n$ export GOPATH=$PWD\n\n... ignoring your existing GOPATH.  (This project imports all the 3rd\nparty drivers here, to make things easier to track, and to enable\nlocal fixes while waiting for upstream.)\n\nThen:\n\n$ cd src/sqltest\n$ go test -v\n\nor, most of the time, skipping the annoyingly long tests:\n\n$ go test -v -short\n\n\n****************************************************************************\nFor MySQL:\n****************************************************************************\nmysqladmin -uroot -proot create gosqltest\n\nTo set set your MySQL user / password run:\n\n$ export GOSQLTEST_MYSQL_USER=user\n$ export GOSQLTEST_MYSQL_PASS=password\n\n\n****************************************************************************\nFor Postgres: (replacing \"bradfitz\" with $USER)\n****************************************************************************\nroot@bradfitzlap:/home/bradfitz# su - postgres\npostgres@bradfitzlap:~$ psql\npostgres=# create database gosqltest;\nCREATE DATABASE\npostgres=# CREATE USER bradfitz WITH ENCRYPTED PASSWORD 'gosqltest';\nCREATE ROLE\npostgres=# GRANT ALL PRIVILEGES ON DATABASE gosqltest to bradfitz;\nGRANT\n\n****************************************************************************\nFor Oracle: (replacing \"bradfitz\" with $USER)\n****************************************************************************\nroot@bradfitzlap:/home/bradfitz# service oracle-xe start\nIff you don't have a nice test database, then i.e.:\nsqlplus /nolog \u003c\u003cEOF\nCONN sys/sys AS SYSDBA\nCREATE DATABASE DB \n  USER SYS IDENTIFIED BY SYS\n  USER SYSTEM IDENTIFIED BY SYSTEM\n  USER user IDENTIFIED BY password\n  LOGFILE GROUP 1 ('/tmp/testdb-redo01.log') SIZE 20M\n  MAXLOGFILES 5 MAXLOGMEMBERS 5 MAXLOGHISTORY 1\n  MAXDATAFILES 100 MAXINSTANCES 1 \n  CHARACTER SET AL32UTF8\n  NATIONAL CHARACTER SET AL32UTF8\n  DATAFILE '/tmp/testdb-data01.dbf'\n  EXTENT MANAGEMENT LOCAL\n  DEFAULT TEMPORARY TABLESPACE temp \n    DATAFILE '/tmp/testdb-temp01.dbf' SIZE 10M REUSE\n  UNDO TABLESPACE undotbs\n    DATAFILE '/tmp/testdb-undo01.dbf' SIZE 10M REUSE \n    AUTOEXTEND ON NEXT 512K MAXSIZE 200M;\nCREATE TABLESPACE data LOGGING\n  DATAFILE '/tmp/testdb-data01.dbf' SIZE 10M REUSE \n  AUTOEXTEND ON NEXT 512K MAXSIZE 100M EXTENT MANAGEMENT LOCAL;\nCREATE TABLESPACE indx LOGGING\n  DATAFILE '/tmp/testdb-indx01.dbf' SIZE 10M REUSE \n  AUTOEXTEND ON NEXT 512K MAXSIZE 100M EXTENT MANAGEMENT LOCAL;\n\nEXIT\nEOF\n\n(More can be read at http://docs.oracle.com/cd/B10501_01/server.920/a96521/create.htm#1003614)\n\n\nTo set set your Oracle user/password@DB run:\n\n$ export GOSQLTEST_ORACLE=user/password@db\n\nthis will result connecting to database user/password@sid\nThe corner case where the sid is a full DSN (with port and everything) is not\nfully managed: only port 1521 on localhost is checked for accepting connections.\nIf you really need the full DSN support, please mail me!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradfitz%2Fgo-sql-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradfitz%2Fgo-sql-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradfitz%2Fgo-sql-test/lists"}