Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Commit c9b14f9

Browse files
authored
move depends package from github.com to customize domain (#1327)
1 parent 7c4e044 commit c9b14f9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+74
-73
lines changed

.circleci/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ jobs:
3535
- checkout
3636

3737
- run: go get -t -d -v ./...
38-
- run: go get -u github.com/go-xorm/core
39-
- run: go get -u github.com/go-xorm/builder
38+
- run: go get -u xorm.io/core
39+
- run: go get -u xorm.io/builder
4040
- run: GO111MODULE=off go build -v
4141
- run: GO111MODULE=on go build -v
4242

.drone.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ pipeline:
5959
image: golang:${GO_VERSION}
6060
commands:
6161
- go get -t -d -v ./...
62-
- go get -u github.com/go-xorm/core
63-
- go get -u github.com/go-xorm/builder
62+
- go get -u xorm.io/core
63+
- go get -u xorm.io/builder
6464
- go build -v
6565
when:
6666
event: [ push, pull_request ]

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Xorm is a simple and powerful ORM for Go.
2828

2929
* Optimistic Locking support
3030

31-
* SQL Builder support via [github.com/go-xorm/builder](https://github.com/go-xorm/builder)
31+
* SQL Builder support via [xorm.io/builder](https://xorm.io/builder)
3232

3333
* Automatical Read/Write seperatelly
3434

cache_lru.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"sync"
1111
"time"
1212

13-
"github.com/go-xorm/core"
13+
"xorm.io/core"
1414
)
1515

1616
// LRUCacher implments cache object facilities

cache_lru_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package xorm
77
import (
88
"testing"
99

10-
"github.com/go-xorm/core"
10+
"xorm.io/core"
1111
"github.com/stretchr/testify/assert"
1212
)
1313

cache_memory_store.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package xorm
77
import (
88
"sync"
99

10-
"github.com/go-xorm/core"
10+
"xorm.io/core"
1111
)
1212

1313
var _ core.CacheStore = NewMemoryStore()

dialect_mssql.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"strconv"
1212
"strings"
1313

14-
"github.com/go-xorm/core"
14+
"xorm.io/core"
1515
)
1616

1717
var (

dialect_mssql_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"reflect"
99
"testing"
1010

11-
"github.com/go-xorm/core"
11+
"xorm.io/core"
1212
)
1313

1414
func TestParseMSSQL(t *testing.T) {

dialect_mysql.go

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

16-
"github.com/go-xorm/core"
16+
"xorm.io/core"
1717
)
1818

1919
var (

dialect_oracle.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"strconv"
1212
"strings"
1313

14-
"github.com/go-xorm/core"
14+
"xorm.io/core"
1515
)
1616

1717
var (

dialect_postgres.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"strconv"
1212
"strings"
1313

14-
"github.com/go-xorm/core"
14+
"xorm.io/core"
1515
)
1616

1717
// from http://www.postgresql.org/docs/current/static/sql-keywords-appendix.html

dialect_postgres_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"reflect"
55
"testing"
66

7-
"github.com/go-xorm/core"
7+
"xorm.io/core"
88
"github.com/jackc/pgx/stdlib"
99
"github.com/stretchr/testify/assert"
1010
)

dialect_sqlite3.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"regexp"
1212
"strings"
1313

14-
"github.com/go-xorm/core"
14+
"xorm.io/core"
1515
)
1616

1717
var (

engine.go

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

23-
"github.com/go-xorm/builder"
24-
"github.com/go-xorm/core"
23+
"xorm.io/builder"
24+
"xorm.io/core"
2525
)
2626

2727
// Engine is the major struct of xorm, it means a database manager.

engine_cond.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"strings"
1212
"time"
1313

14-
"github.com/go-xorm/builder"
15-
"github.com/go-xorm/core"
14+
"xorm.io/builder"
15+
"xorm.io/core"
1616
)
1717

1818
func (engine *Engine) buildConds(table *core.Table, bean interface{},

engine_group.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"context"
99
"time"
1010

11-
"github.com/go-xorm/core"
11+
"xorm.io/core"
1212
)
1313

1414
// EngineGroup defines an engine group

engine_table.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"reflect"
1010
"strings"
1111

12-
"github.com/go-xorm/core"
12+
"xorm.io/core"
1313
)
1414

1515
// tbNameWithSchema will automatically add schema prefix on table name

go.mod

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ require (
66
github.com/davecgh/go-spew v1.1.1 // indirect
77
github.com/denisenkom/go-mssqldb v0.0.0-20190121005146-b04fd42d9952
88
github.com/go-sql-driver/mysql v1.4.1
9-
github.com/go-xorm/builder v0.3.3
10-
github.com/go-xorm/core v0.6.2
11-
github.com/go-xorm/sqlfiddle v0.0.0-20180821085327-62ce714f951a // indirect
129
github.com/google/go-cmp v0.2.0 // indirect
1310
github.com/jackc/fake v0.0.0-20150926172116-812a484cc733 // indirect
1411
github.com/jackc/pgx v3.3.0+incompatible
@@ -22,4 +19,6 @@ require (
2219
github.com/ziutek/mymysql v1.5.4
2320
golang.org/x/crypto v0.0.0-20190122013713-64072686203f // indirect
2421
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
22+
xorm.io/builder v0.3.5
23+
xorm.io/core v0.6.3
2524
)

go.sum

+6-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ github.com/denisenkom/go-mssqldb v0.0.0-20190121005146-b04fd42d9952 h1:b5OnbZD49
1010
github.com/denisenkom/go-mssqldb v0.0.0-20190121005146-b04fd42d9952/go.mod h1:xN/JuLBIz4bjkxNmByTiV1IbhfnYb6oo99phBn4Eqhc=
1111
github.com/go-sql-driver/mysql v1.4.1 h1:g24URVg0OFbNUTx9qqY1IRZ9D9z3iPyi5zKhQZpNwpA=
1212
github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
13-
github.com/go-xorm/builder v0.3.3 h1:v8grgrwOGv/iHXIEhIvOwHZIPLrpxRKSX8yWSMLFn/4=
14-
github.com/go-xorm/builder v0.3.3/go.mod h1:v8mE3MFBgtL+RGFNfUnAMUqqfk/Y4W5KuwCFQIEpQLk=
15-
github.com/go-xorm/core v0.6.2 h1:EJLcSxf336POJr670wKB55Mah9f93xzvGYzNRgnT8/Y=
16-
github.com/go-xorm/core v0.6.2/go.mod h1:bwPIfLdm/FzWgVUH8WPVlr+uJhscvNGFcaZKXsI3n2c=
1713
github.com/go-xorm/sqlfiddle v0.0.0-20180821085327-62ce714f951a h1:9wScpmSP5A3Bk8V3XHWUcJmYTh+ZnlHVyc+A4oZYS3Y=
1814
github.com/go-xorm/sqlfiddle v0.0.0-20180821085327-62ce714f951a/go.mod h1:56xuuqnHyryaerycW3BfssRdxQstACi0Epw/yC5E2xM=
1915
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
@@ -53,3 +49,9 @@ google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO50
5349
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
5450
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
5551
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
52+
xorm.io/builder v0.3.5 h1:EilU39fvWDxjb1cDaELpYhsF+zziRBhew8xk4pngO+A=
53+
xorm.io/builder v0.3.5/go.mod h1:ZFbByS/KxZI1FKRjL05PyJ4YrK2bcxlUaAxdum5aTR8=
54+
xorm.io/core v0.6.2 h1:EJLcSxf336POJr670wKB55Mah9f93xzvGYzNRgnT8/Y=
55+
xorm.io/core v0.6.2/go.mod h1:bwPIfLdm/FzWgVUH8WPVlr+uJhscvNGFcaZKXsI3n2c=
56+
xorm.io/core v0.6.3 h1:n1NhVZt1s2oLw1BZfX2ocIJsHyso259uPgg63BGr37M=
57+
xorm.io/core v0.6.3/go.mod h1:8kz/C6arVW/O9vk3PgCiMJO2hIAm1UcuOL3dSPyZ2qo=

helpers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"strconv"
1313
"strings"
1414

15-
"github.com/go-xorm/core"
15+
"xorm.io/core"
1616
)
1717

1818
// str2PK convert string value to primary key value according to tp

interface.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"reflect"
1111
"time"
1212

13-
"github.com/go-xorm/core"
13+
"xorm.io/core"
1414
)
1515

1616
// Interface defines the interface which Engine, EngineGroup and Session will implementate.

logger.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"io"
1010
"log"
1111

12-
"github.com/go-xorm/core"
12+
"xorm.io/core"
1313
)
1414

1515
// default log options

rows.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"fmt"
1010
"reflect"
1111

12-
"github.com/go-xorm/core"
12+
"xorm.io/core"
1313
)
1414

1515
// Rows rows wrapper a rows to

session.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"strings"
1515
"time"
1616

17-
"github.com/go-xorm/core"
17+
"xorm.io/core"
1818
)
1919

2020
type sessionType int

session_cols.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strings"
1010
"time"
1111

12-
"github.com/go-xorm/core"
12+
"xorm.io/core"
1313
)
1414

1515
type incrParam struct {

session_cols_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package xorm
77
import (
88
"testing"
99

10-
"github.com/go-xorm/core"
10+
"xorm.io/core"
1111
"github.com/stretchr/testify/assert"
1212
)
1313

session_cond.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
package xorm
66

7-
import "github.com/go-xorm/builder"
7+
import "xorm.io/builder"
88

99
// Sql provides raw sql input parameter. When you have a complex SQL statement
1010
// and cannot use Where, Id, In and etc. Methods to describe, you can use SQL.

session_cond_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"fmt"
1010
"testing"
1111

12-
"github.com/go-xorm/builder"
12+
"xorm.io/builder"
1313
"github.com/stretchr/testify/assert"
1414
)
1515

session_convert.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"strings"
1515
"time"
1616

17-
"github.com/go-xorm/core"
17+
"xorm.io/core"
1818
)
1919

2020
func (session *Session) str2Time(col *core.Column, data string) (outTime time.Time, outErr error) {

session_delete.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"fmt"
1010
"strconv"
1111

12-
"github.com/go-xorm/core"
12+
"xorm.io/core"
1313
)
1414

1515
func (session *Session) cacheDelete(table *core.Table, tableName, sqlStr string, args ...interface{}) error {

session_delete_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"testing"
99
"time"
1010

11-
"github.com/go-xorm/core"
11+
"xorm.io/core"
1212
"github.com/stretchr/testify/assert"
1313
)
1414

session_exist.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"fmt"
1010
"reflect"
1111

12-
"github.com/go-xorm/builder"
13-
"github.com/go-xorm/core"
12+
"xorm.io/builder"
13+
"xorm.io/core"
1414
)
1515

1616
// Exist returns true if the record exist otherwise return false

session_find.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"reflect"
1111
"strings"
1212

13-
"github.com/go-xorm/builder"
14-
"github.com/go-xorm/core"
13+
"xorm.io/builder"
14+
"xorm.io/core"
1515
)
1616

1717
const (

session_find_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"testing"
1111
"time"
1212

13-
"github.com/go-xorm/core"
13+
"xorm.io/core"
1414
"github.com/stretchr/testify/assert"
1515
)
1616

session_get.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"reflect"
1212
"strconv"
1313

14-
"github.com/go-xorm/core"
14+
"xorm.io/core"
1515
)
1616

1717
// Get retrieve one record from database, bean's non-empty fields

session_get_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"testing"
1111
"time"
1212

13-
"github.com/go-xorm/core"
13+
"xorm.io/core"
1414
"github.com/stretchr/testify/assert"
1515
)
1616

session_insert.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"strconv"
1313
"strings"
1414

15-
"github.com/go-xorm/core"
15+
"xorm.io/core"
1616
)
1717

1818
// Insert insert one or more beans

session_pk_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"testing"
1010
"time"
1111

12-
"github.com/go-xorm/core"
12+
"xorm.io/core"
1313
"github.com/stretchr/testify/assert"
1414
)
1515

session_query.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"strings"
1212
"time"
1313

14-
"github.com/go-xorm/builder"
15-
"github.com/go-xorm/core"
14+
"xorm.io/builder"
15+
"xorm.io/core"
1616
)
1717

1818
func (session *Session) genQuerySQL(sqlOrArgs ...interface{}) (string, []interface{}, error) {

session_query_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"testing"
1111
"time"
1212

13-
"github.com/go-xorm/builder"
14-
"github.com/go-xorm/core"
13+
"xorm.io/builder"
14+
"xorm.io/core"
1515

1616
"github.com/stretchr/testify/assert"
1717
)

0 commit comments

Comments
 (0)