Skip to content

Commit 27868a6

Browse files
authored
Merge pull request #3 from bitbus/pr-change-mod
change package name to github.com/bitbus/sqlx
2 parents f7daf07 + 5aa8e60 commit 27868a6

9 files changed

+26
-15
lines changed

README.md

+17-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +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)
3+
[![GoDoc](https://godoc.org/github.com/bitbus/sqlx?status.svg)](https://pkg.go.dev/github.com/bitbus/sqlx)
44

55
sqlx is a library which provides a set of extensions on go's standard
66
`database/sql` library. The sqlx versions of `sql.DB`, `sql.TX`, `sql.Stmt`,
@@ -14,13 +14,24 @@ Major additional concepts are:
1414
* Named parameter support including prepared statements
1515
* `Get` and `Select` to go quickly from query to struct/slice
1616

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

2121
## Recent Changes
22+
v1.6.0:
23+
- change package name from `github.com/jmoiron/sqlx` to `github.com/bitbus/sqlx`
2224

23-
1.3.0:
25+
v1.5.0:
26+
- add `With/WithTx/Withx/WithTxx` function for `Conn`/`DB`
27+
- add `InExec/MustInExec/InGet/InSelect` help function
28+
- add `InExec/MustInExec/InGet/InSelect` method for `DB`/`Tx`
29+
30+
v1.4.0:
31+
- just format and pretty some code
32+
- set minium support go version to go1.18+ in go.mod
33+
34+
v1.3.0:
2435

2536
* `sqlx.DB.Connx(context.Context) *sqlx.Conn`
2637
* `sqlx.BindDriver(driverName, bindType)`
@@ -46,7 +57,7 @@ will get major version number bumps.
4657

4758
## install
4859

49-
go get github.com/jmoiron/sqlx
60+
go get github.com/bitbus/sqlx
5061

5162
## issues
5263

@@ -64,7 +75,7 @@ to give columns distinct names, `rows.Scan` to scan them manually, or
6475
## usage
6576

6677
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
78+
[sqlx_test.go](https://github.com/bitbus/sqlx/blob/master/sqlx_test.go) for more
6879
usage.
6980

7081

@@ -77,7 +88,7 @@ import (
7788
"log"
7889

7990
_ "github.com/lib/pq"
80-
"github.com/jmoiron/sqlx"
91+
"github.com/bitbus/sqlx"
8192
)
8293

8394
var schema = `

bind.go

+1-1
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/bitbus/sqlx/reflectx"
1313
)
1414

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

bind_test.go

+2-2
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/bitbus/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/bitbus/sqlx
3939
BenchmarkBindSpeed/old-4 100000000 11.0 ns/op
4040
BenchmarkBindSpeed/new-4 42535839 27.5 ns/op
4141
*/

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/jmoiron/sqlx
1+
module github.com/bitbus/sqlx
22

33
go 1.18
44

named.go

+1-1
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/bitbus/sqlx/reflectx"
2525
)
2626

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

reflectx/reflect_test.go

+1-1
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/bitbus/sqlx/reflectx.TestMustBe" {
854854
}
855855
if valueErr.Kind != reflect.String {
856856
t.Errorf("unexpected Kind: %s", valueErr.Kind)

sqlx.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"strings"
1414
"sync"
1515

16-
"github.com/jmoiron/sqlx/reflectx"
16+
"github.com/bitbus/sqlx/reflectx"
1717
)
1818

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

sqlx_context_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
"testing"
2121
"time"
2222

23+
"github.com/bitbus/sqlx/reflectx"
2324
_ "github.com/go-sql-driver/mysql"
24-
"github.com/jmoiron/sqlx/reflectx"
2525
_ "github.com/lib/pq"
2626
_ "github.com/mattn/go-sqlite3"
2727
)

sqlx_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import (
2222
"testing"
2323
"time"
2424

25+
"github.com/bitbus/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
)

0 commit comments

Comments
 (0)