There are no reviews yet. Be the first to send feedback to the community and the maintainers!
This project is an integration test, testing various Go database drivers (for the database/sql package). To run these tests, in this directory, run: $ export GOPATH=$PWD ... ignoring your existing GOPATH. (This project imports all the 3rd party drivers here, to make things easier to track, and to enable local fixes while waiting for upstream.) Then: $ cd src/sqltest $ 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 **************************************************************************** For Oracle: (replacing "bradfitz" with $USER) **************************************************************************** root@bradfitzlap:/home/bradfitz# service oracle-xe start Iff you don't have a nice test database, then i.e.: sqlplus /nolog <<EOF CONN sys/sys AS SYSDBA CREATE DATABASE DB USER SYS IDENTIFIED BY SYS USER SYSTEM IDENTIFIED BY SYSTEM USER user IDENTIFIED BY password LOGFILE GROUP 1 ('/tmp/testdb-redo01.log') SIZE 20M MAXLOGFILES 5 MAXLOGMEMBERS 5 MAXLOGHISTORY 1 MAXDATAFILES 100 MAXINSTANCES 1 CHARACTER SET AL32UTF8 NATIONAL CHARACTER SET AL32UTF8 DATAFILE '/tmp/testdb-data01.dbf' EXTENT MANAGEMENT LOCAL DEFAULT TEMPORARY TABLESPACE temp DATAFILE '/tmp/testdb-temp01.dbf' SIZE 10M REUSE UNDO TABLESPACE undotbs DATAFILE '/tmp/testdb-undo01.dbf' SIZE 10M REUSE AUTOEXTEND ON NEXT 512K MAXSIZE 200M; CREATE TABLESPACE data LOGGING DATAFILE '/tmp/testdb-data01.dbf' SIZE 10M REUSE AUTOEXTEND ON NEXT 512K MAXSIZE 100M EXTENT MANAGEMENT LOCAL; CREATE TABLESPACE indx LOGGING DATAFILE '/tmp/testdb-indx01.dbf' SIZE 10M REUSE AUTOEXTEND ON NEXT 512K MAXSIZE 100M EXTENT MANAGEMENT LOCAL; EXIT EOF (More can be read at http://docs.oracle.com/cd/B10501_01/server.920/a96521/create.htm#1003614) To set set your Oracle user/password@DB run: $ export GOSQLTEST_ORACLE=user/password@db this will result connecting to database user/password@sid The corner case where the sid is a full DSN (with port and everything) is not fully managed: only port 1521 on localhost is checked for accepting connections. If you really need the full DSN support, please mail me!
homelab
Brad's homelab setuphttp2
old repo for HTTP/2 support for Go (see README for new home)gomemcache
Go Memcached client library #golanggoimports
(old repo) Tool to fix (add, remove) your Go imports automatically.talk-yapc-asia-2015
talk-yapc-asia-2015shotizam
Shotizam analyzes the size of Go binariesexp-httpclient
experimental new HTTP client API for #golang (WIP)embiggen-disk
embiggden-disk live-resizes a filesystem after first live-resizing any necessary layers below it: an optional LVM LV and PV, and an MBR or GPT partition tablegitbrute
brute-force a git commit hashlatlong
The latlong package maps from a latitude and longitude to a timezone.iter
Range over integers [0,n). Seriously, that's it.jndi
a irresponsibly bad logging libraryautocertdelegate
Get LetsEncrypt TLS certs for internal-only TLS servers via a delegated golang.org/x/crypto/acme/autocert server.runsit
THIS IS OLD. DO NOT USE THIS. Just use systemd these days.go-smtpd
SMTP server library for Goscanningcabinet
Document Management System (scanner -> appengine blobs)campher
Embed Perl in Go. This works, but was a joke for a presentation. Don't use.websomtep
[joke] combination SMTP / WebSocket serverdeadbeef
Gimmicky commit hash made using bradfitz/gitbruteslice
The slice package sorts Go slices.snake
a #golang Snake game in webassembly running at http://snake.126.49.198.in-addr.arpa/webfist
WebFist implements WebFinger delegation for providers who don't support WebFinger natively.android-garage-opener
Android Garage Door Openerlesser
rfbgo
Toy RFB (VNC) Server in Go (#golang)go-tool-cache
inboxfewer
archive gmail threads when github or gerrit issues are closedart
Allotment Routing Tableshipit
Software Release Toolgitutil
Utilities for working with git and Gerritcontributing
(DEAD, SHUT DOWN) a repository of information on how to contribute to open source projectsandroid-squeezer
Android SqueezeCenter / SqueezeBox remote control client.undent
unindent stuffh2slam
slam an HTTP/2 server a lot of concurrent load over a single TCP connection (for debugging something)zippy-android-talk
Code to accompany my Zippy Android talk at Google I/O 2010go-issue-mirror
[old] precursor to golang.org/x/build/maintner/godatagoman
Gearman Client for Gominimal-qemu-linux
experimenting with a minimal Linux kernel under qemu-system for testinglitecmp
ip2asn
parser for iptoasn.com datahubbub-hub
A PubSubHubbub hub implementationsixmap
tool to visualize the SIX (Seattle Internet Exchange) route server coverageqopher
Gopher Queuegotsync
parallel tree syncqemu-guest-kragent
a minimal qemu-guest-agent in Go for gokrazy + Proxmox (qemu)powerview
Control Hunter Douglas PowerView shades & blindsgrpc-go16-demo
Demonstrating using Go 1.6's http2 to do grpcgo-get-proxy
http proxy for the "go get" subcommandgce
Go package for for Google Compute Engine (GCE)sonden
If Sonos is playing audio, turn on my Denon amps.go-runas
Wrapper around go's rpc pkg to drop root and run RPCs as another usertalk-http2go
HTTP/2 Go Talkcandysim
when will Candyland be over?morskoyboy
Bored on a bus with no Internet? Play ะะพััะบะพะน ะะพะน (Sea Battle), similar to Battleship.batt
build ALL the thingsset-consistenthash-perl
consistent hashing library for Perlissue-tracker-behaviors
lingobingo
lingo bingo lightning talkbrackup-gae-server
Brackup server for Google App Engineeight22er
[joke] Twitter Direct Message POP3 gatewayremserial-mirror
git mirror of remserialtalk-2016-08-16-seattle-go-1.7
aoc
advent of code helpers to reuse between tasksperl-denon-avr-4806
Perl code to control a Denon AVR-4806unicode-checkutf8
Perl module Unicode::CheckUTF8go-mod-archiver-test
perl-net-openid
Perl Net::OpenID::* modulesissuemirror
Code for mirroring Github issues to local files, and reading them.issue735583
Demo for Chrome issue issue 735583talk-2014-04-gophercon
Gophercon 2014 Talksys-syscall
Sys::Syscall -- access system calls that Perl doesn't normally provide access tok9sms
K-9 SMSbarlogalights
little program I use to run the LED strips in my home bartalk-2012-08-23-square-go
Talk about Go at Squarefotobilder-spiegel
Mirror photos & galleries from FotoBilder / LiveJournaldemocgoalloc
fw-test-agent
go-test-bug-repro
wintun-go
dev fork of golang.zx2c4.com/wintuntalk-gluecon-2010
Slides & code samples from my Gluecon 2010 talkLove Open Source and this site? Check out how you can help us