Skip to content

Commit

Permalink
Merge a4bb8c1 into 8daca4f
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Feb 24, 2018
2 parents 8daca4f + a4bb8c1 commit 2ff724a
Show file tree
Hide file tree
Showing 22 changed files with 252 additions and 1,394 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ language: go
sudo: false

go:
- '1.3'
- '1.4'
- '1.5'
- '1.6'
- '1.7'
- '1.8'
- '1.8.x'
- '1.9.x'
- '1.10.x'
- 'tip'

before_install:
Expand Down
2 changes: 0 additions & 2 deletions bench_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// +build go1.8

package proxy

import (
Expand Down
6 changes: 2 additions & 4 deletions conn.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// +build go1.8

package proxy

import (
Expand Down Expand Up @@ -89,7 +87,7 @@ func (conn *Conn) Begin() (driver.Tx, error) {
panic("not supported")
}

// BeginContext starts and returns a new transaction which is wrapped by Tx.
// BeginTx starts and returns a new transaction which is wrapped by Tx.
// It will trigger PreBegin, Begin, PostBegin hooks.
func (conn *Conn) BeginTx(c context.Context, opts driver.TxOptions) (driver.Tx, error) {
// set the hooks.
Expand Down Expand Up @@ -220,7 +218,7 @@ func (conn *Conn) Query(query string, args []driver.Value) (driver.Rows, error)
panic("not supported")
}

// Query executes a query that may return rows.
// QueryContext executes a query that may return rows.
// It wil trigger PreQuery, Query, PostQuery hooks.
//
// If the original connection does not satisfy "database/sql/driver".Queryer, it return ErrSkip error.
Expand Down
151 changes: 0 additions & 151 deletions conn_fallback.go

This file was deleted.

2 changes: 0 additions & 2 deletions conn_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// +build go1.8

package proxy

import "database/sql/driver"
Expand Down
2 changes: 0 additions & 2 deletions fakedb_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// +build go1.8

package proxy

import (
Expand Down
1 change: 0 additions & 1 deletion proxy.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// +build go1.8
// a proxy package is a proxy driver for dabase/sql.

package proxy
Expand Down

0 comments on commit 2ff724a

Please sign in to comment.