Skip to content

Commit d431cfb

Browse files
committed
change package name to github.com/bitbus/sqlx
1 parent 15b90b7 commit d431cfb

File tree

9 files changed

+19
-14
lines changed

9 files changed

+19
-14
lines changed

Diff for: README.md

+10-5
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,12 +14,17 @@ 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
2222

23+
1.5.0
24+
- add `With/WithTx/Withx/WithTxx` function for `Conn`/`DB`
25+
- add `InExec/MustInExec/InGet/InSelect` help function
26+
- add `InExec/MustInExec/InGet/InSelect` method for `DB`/`Tx`
27+
2328
1.3.0:
2429

2530
* `sqlx.DB.Connx(context.Context) *sqlx.Conn`
@@ -46,7 +51,7 @@ will get major version number bumps.
4651

4752
## install
4853

49-
go get github.com/jmoiron/sqlx
54+
go get github.com/bitbus/sqlx
5055

5156
## issues
5257

@@ -64,7 +69,7 @@ to give columns distinct names, `rows.Scan` to scan them manually, or
6469
## usage
6570

6671
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
72+
[sqlx_test.go](https://github.com/bitbus/sqlx/blob/master/sqlx_test.go) for more
6873
usage.
6974

7075

@@ -77,7 +82,7 @@ import (
7782
"log"
7883

7984
_ "github.com/lib/pq"
80-
"github.com/jmoiron/sqlx"
85+
"github.com/bitbus/sqlx"
8186
)
8287

8388
var schema = `

Diff for: 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.

Diff for: 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
*/

Diff for: 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

Diff for: 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

Diff for: 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)

Diff for: 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

Diff for: 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
)

Diff for: 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)