Skip to content

Commit 031b0b6

Browse files
committed
changed module source
1 parent 28212d4 commit 031b0b6

File tree

9 files changed

+21
-24
lines changed

9 files changed

+21
-24
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# sqlx
22

3-
[![Build Status](https://travis-ci.org/jmoiron/sqlx.svg?branch=master)](https://travis-ci.org/jmoiron/sqlx) [![Coverage Status](https://coveralls.io/repos/github/jmoiron/sqlx/badge.svg?branch=master)](https://coveralls.io/github/jmoiron/sqlx?branch=master) [![Godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/jmoiron/sqlx) [![license](http://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://raw.githubusercontent.com/jmoiron/sqlx/master/LICENSE)
4-
5-
sqlx is a library which provides a set of extensions on go's standard
3+
sqlx (forked from [jmoiron/sqlx](https://github.com/jmoiron/sqlx)) is a library which provides a set of extensions on go's standard
64
`database/sql` library. The sqlx versions of `sql.DB`, `sql.TX`, `sql.Stmt`,
75
et al. all leave the underlying interfaces untouched, so that their interfaces
86
are a superset on the standard ones. This makes it relatively painless to
@@ -14,7 +12,7 @@ Major additional concepts are:
1412
* Named parameter support including prepared statements
1513
* `Get` and `Select` to go quickly from query to struct/slice
1614

17-
In addition to the [godoc API documentation](http://godoc.org/github.com/jmoiron/sqlx),
15+
In addition to the [godoc API documentation](http://godoc.org/github.com/developersismedika/sqlx),
1816
there is also some [user documentation](http://jmoiron.github.io/sqlx/) that
1917
explains how to use `database/sql` along with sqlx.
2018

@@ -46,7 +44,7 @@ will get major version number bumps.
4644

4745
## install
4846

49-
go get github.com/jmoiron/sqlx
47+
go get github.com/developersismedika/sqlx
5048

5149
## issues
5250

@@ -64,7 +62,7 @@ to give columns distinct names, `rows.Scan` to scan them manually, or
6462
## usage
6563

6664
Below is an example which shows some common use cases for sqlx. Check
67-
[sqlx_test.go](https://github.com/jmoiron/sqlx/blob/master/sqlx_test.go) for more
65+
[sqlx_test.go](https://github.com/developersismedika/sqlx/blob/master/sqlx_test.go) for more
6866
usage.
6967

7068

@@ -77,7 +75,7 @@ import (
7775
"log"
7876

7977
_ "github.com/lib/pq"
80-
"github.com/jmoiron/sqlx"
78+
"github.com/developersismedika/sqlx"
8179
)
8280

8381
var schema = `

bind.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strings"
1010
"sync"
1111

12-
"github.com/jmoiron/sqlx/reflectx"
12+
"github.com/developersismedika/sqlx/reflectx"
1313
)
1414

1515
// Bindvar types supported by Rebind, BindMap and BindStruct.

bind_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ sync.Map implementation:
2626
2727
goos: linux
2828
goarch: amd64
29-
pkg: github.com/jmoiron/sqlx
29+
pkg: github.com/developersismedika/sqlx
3030
BenchmarkBindSpeed/old-4 100000000 11.0 ns/op
3131
BenchmarkBindSpeed/new-4 24575726 50.8 ns/op
3232
@@ -35,7 +35,7 @@ async.Value map implementation:
3535
3636
goos: linux
3737
goarch: amd64
38-
pkg: github.com/jmoiron/sqlx
38+
pkg: github.com/developersismedika/sqlx
3939
BenchmarkBindSpeed/old-4 100000000 11.0 ns/op
4040
BenchmarkBindSpeed/new-4 42535839 27.5 ns/op
4141
*/

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/jmoiron/sqlx
1+
module github.com/developersismedika/sqlx
22

33
go 1.10
44

named.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"strconv"
2222
"unicode"
2323

24-
"github.com/jmoiron/sqlx/reflectx"
24+
"github.com/developersismedika/sqlx/reflectx"
2525
)
2626

2727
// NamedStmt is a prepared statement that executes named queries. Prepare it

reflectx/reflect_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ func TestMustBe(t *testing.T) {
850850
t.Error("expected panic with *reflect.ValueError")
851851
return
852852
}
853-
if valueErr.Method != "github.com/jmoiron/sqlx/reflectx.TestMustBe" {
853+
if valueErr.Method != "github.com/developersismedika/sqlx/reflectx.TestMustBe" {
854854
}
855855
if valueErr.Kind != reflect.String {
856856
t.Errorf("unexpected Kind: %s", valueErr.Kind)

sqlx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"strings"
1313
"sync"
1414

15-
"github.com/jmoiron/sqlx/reflectx"
15+
"github.com/developersismedika/sqlx/reflectx"
1616
)
1717

1818
// Although the NameMapper is convenient, in practice it should not

sqlx_context_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1+
//go:build go1.8
12
// +build go1.8
23

34
// The following environment variables, if set, will be used:
45
//
5-
// * SQLX_SQLITE_DSN
6-
// * SQLX_POSTGRES_DSN
7-
// * SQLX_MYSQL_DSN
6+
// - SQLX_SQLITE_DSN
7+
// - SQLX_POSTGRES_DSN
8+
// - SQLX_MYSQL_DSN
89
//
910
// Set any of these variables to 'skip' to skip them. Note that for MySQL,
1011
// the string '?parseTime=True' will be appended to the DSN if it's not there
1112
// already.
12-
//
1313
package sqlx
1414

1515
import (
@@ -22,8 +22,8 @@ import (
2222
"testing"
2323
"time"
2424

25+
"github.com/developersismedika/sqlx/reflectx"
2526
_ "github.com/go-sql-driver/mysql"
26-
"github.com/jmoiron/sqlx/reflectx"
2727
_ "github.com/lib/pq"
2828
_ "github.com/mattn/go-sqlite3"
2929
)

sqlx_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
// The following environment variables, if set, will be used:
22
//
3-
// * SQLX_SQLITE_DSN
4-
// * SQLX_POSTGRES_DSN
5-
// * SQLX_MYSQL_DSN
3+
// - SQLX_SQLITE_DSN
4+
// - SQLX_POSTGRES_DSN
5+
// - SQLX_MYSQL_DSN
66
//
77
// Set any of these variables to 'skip' to skip them. Note that for MySQL,
88
// the string '?parseTime=True' will be appended to the DSN if it's not there
99
// already.
10-
//
1110
package sqlx
1211

1312
import (
@@ -22,8 +21,8 @@ import (
2221
"testing"
2322
"time"
2423

24+
"github.com/developersismedika/sqlx/reflectx"
2525
_ "github.com/go-sql-driver/mysql"
26-
"github.com/jmoiron/sqlx/reflectx"
2726
_ "github.com/lib/pq"
2827
_ "github.com/mattn/go-sqlite3"
2928
)

0 commit comments

Comments
 (0)