Skip to content

Commit

Permalink
change package name to github.com/bitbus/sqlx
Browse files Browse the repository at this point in the history
  • Loading branch information
alimy committed Aug 19, 2023
1 parent 15b90b7 commit d431cfb
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 14 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sqlx

[![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)
[![GoDoc](https://godoc.org/github.com/bitbus/sqlx?status.svg)](https://pkg.go.dev/github.com/bitbus/sqlx)

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

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

## Recent Changes

1.5.0
- add `With/WithTx/Withx/WithTxx` function for `Conn`/`DB`
- add `InExec/MustInExec/InGet/InSelect` help function
- add `InExec/MustInExec/InGet/InSelect` method for `DB`/`Tx`

1.3.0:

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

## install

go get github.com/jmoiron/sqlx
go get github.com/bitbus/sqlx

## issues

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

Below is an example which shows some common use cases for sqlx. Check
[sqlx_test.go](https://github.com/jmoiron/sqlx/blob/master/sqlx_test.go) for more
[sqlx_test.go](https://github.com/bitbus/sqlx/blob/master/sqlx_test.go) for more
usage.


Expand All @@ -77,7 +82,7 @@ import (
"log"

_ "github.com/lib/pq"
"github.com/jmoiron/sqlx"
"github.com/bitbus/sqlx"
)

var schema = `
Expand Down
2 changes: 1 addition & 1 deletion bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"sync"

"github.com/jmoiron/sqlx/reflectx"
"github.com/bitbus/sqlx/reflectx"
)

// Bindvar types supported by Rebind, BindMap and BindStruct.
Expand Down
4 changes: 2 additions & 2 deletions bind_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ sync.Map implementation:
goos: linux
goarch: amd64
pkg: github.com/jmoiron/sqlx
pkg: github.com/bitbus/sqlx
BenchmarkBindSpeed/old-4 100000000 11.0 ns/op
BenchmarkBindSpeed/new-4 24575726 50.8 ns/op
Expand All @@ -35,7 +35,7 @@ async.Value map implementation:
goos: linux
goarch: amd64
pkg: github.com/jmoiron/sqlx
pkg: github.com/bitbus/sqlx
BenchmarkBindSpeed/old-4 100000000 11.0 ns/op
BenchmarkBindSpeed/new-4 42535839 27.5 ns/op
*/
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/jmoiron/sqlx
module github.com/bitbus/sqlx

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion named.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"strconv"
"unicode"

"github.com/jmoiron/sqlx/reflectx"
"github.com/bitbus/sqlx/reflectx"
)

// NamedStmt is a prepared statement that executes named queries. Prepare it
Expand Down
2 changes: 1 addition & 1 deletion reflectx/reflect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ func TestMustBe(t *testing.T) {
t.Error("expected panic with *reflect.ValueError")
return
}
if valueErr.Method != "github.com/jmoiron/sqlx/reflectx.TestMustBe" {
if valueErr.Method != "github.com/bitbus/sqlx/reflectx.TestMustBe" {
}
if valueErr.Kind != reflect.String {
t.Errorf("unexpected Kind: %s", valueErr.Kind)
Expand Down
2 changes: 1 addition & 1 deletion sqlx.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"strings"
"sync"

"github.com/jmoiron/sqlx/reflectx"
"github.com/bitbus/sqlx/reflectx"
)

// Although the NameMapper is convenient, in practice it should not
Expand Down
2 changes: 1 addition & 1 deletion sqlx_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"testing"
"time"

"github.com/bitbus/sqlx/reflectx"
_ "github.com/go-sql-driver/mysql"
"github.com/jmoiron/sqlx/reflectx"
_ "github.com/lib/pq"
_ "github.com/mattn/go-sqlite3"
)
Expand Down
2 changes: 1 addition & 1 deletion sqlx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"testing"
"time"

"github.com/bitbus/sqlx/reflectx"
_ "github.com/go-sql-driver/mysql"
"github.com/jmoiron/sqlx/reflectx"
_ "github.com/lib/pq"
_ "github.com/mattn/go-sqlite3"
)
Expand Down

0 comments on commit d431cfb

Please sign in to comment.