Skip to content

Commit b81aa40

Browse files
lunnyGitea
authored and
Gitea
committed
Move github.com/go-xorm/xorm to xorm.io/xorm (go-xorm#1459)
1 parent 33fc33b commit b81aa40

20 files changed

+40
-108
lines changed

.drone.yml

+4-42
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,11 @@ platform:
66
os: linux
77
arch: amd64
88

9-
clone:
10-
disable: true
11-
129
workspace:
1310
base: /go
14-
path: src/github.com/go-xorm/xorm
11+
path: src/gitea.com/xorm/xorm
1512

1613
steps:
17-
- name: git
18-
pull: default
19-
image: plugins/git:next
20-
settings:
21-
depth: 50
22-
tags: true
23-
2414
- name: init_postgres
2515
pull: default
2616
image: postgres:9.5
@@ -186,21 +176,11 @@ platform:
186176
os: linux
187177
arch: amd64
188178

189-
clone:
190-
disable: true
191-
192179
workspace:
193180
base: /go
194-
path: src/github.com/go-xorm/xorm
181+
path: src/gitea.com/xorm/xorm
195182

196183
steps:
197-
- name: git
198-
pull: default
199-
image: plugins/git:next
200-
settings:
201-
depth: 50
202-
tags: true
203-
204184
- name: init_postgres
205185
pull: default
206186
image: postgres:9.5
@@ -406,20 +386,11 @@ platform:
406386
os: linux
407387
arch: amd64
408388

409-
clone:
410-
disable: true
411-
412389
workspace:
413390
base: /go
414-
path: src/github.com/go-xorm/xorm
391+
path: src/gitea.com/xorm/xorm
415392

416393
steps:
417-
- name: git
418-
pull: default
419-
image: plugins/git:next
420-
settings:
421-
depth: 50
422-
tags: true
423394

424395
- name: build
425396
pull: default
@@ -618,20 +589,11 @@ platform:
618589
os: linux
619590
arch: amd64
620591

621-
clone:
622-
disable: true
623-
624592
workspace:
625593
base: /go
626-
path: src/github.com/go-xorm/xorm
594+
path: src/gitea.com/xorm/xorm
627595

628596
steps:
629-
- name: git
630-
pull: default
631-
image: plugins/git:next
632-
settings:
633-
depth: 50
634-
tags: true
635597

636598
- name: build
637599
pull: default

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ proposed functionality.
3232
We appreciate any bug reports, but especially ones with self-contained
3333
(doesn't depend on code outside of xorm), minimal (can't be simplified
3434
further) test cases. It's especially helpful if you can submit a pull
35-
request with just the failing test case(you can find some example test file like [session_get_test.go](https://github.com/go-xorm/xorm/blob/master/session_get_test.go)).
35+
request with just the failing test case(you can find some example test file like [session_get_test.go](https://gitea.com/xorm/xorm/src/branch/master/session_get_test.go)).
3636

3737
If you implements a new database interface, you maybe need to add a test_<databasename>.sh file.
38-
For example, [mysql_test.go](https://github.com/go-xorm/xorm/blob/master/test_mysql.sh)
38+
For example, [mysql_test.go](https://gitea.com/xorm/xorm/src/branch/master/test_mysql.sh)
3939

4040
### New functionality
4141

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# xorm
22

3-
[中文](https://github.com/go-xorm/xorm/blob/master/README_CN.md)
3+
[中文](https://gitea.com/xorm/xorm/src/branch/master/README_CN.md)
44

55
Xorm is a simple and powerful ORM for Go.
66

7-
[![CircleCI](https://circleci.com/gh/go-xorm/xorm.svg?style=shield)](https://circleci.com/gh/go-xorm/xorm) [![codecov](https://codecov.io/gh/go-xorm/xorm/branch/master/graph/badge.svg)](https://codecov.io/gh/go-xorm/xorm)
8-
[![](https://goreportcard.com/badge/github.com/go-xorm/xorm)](https://goreportcard.com/report/github.com/go-xorm/xorm)
7+
[![Build Status](https://drone.gitea.com/api/badges/xorm/xorm/status.svg)](https://drone.gitea.com/xorm/xorm) [![](http://gocover.io/_badge/xorm.io/xorm)](http://gocover.io/xorm.io/xorm)
8+
[![](https://goreportcard.com/badge/xorm.io/xorm)](https://goreportcard.com/report/xorm.io/xorm)
99
[![Join the chat at https://img.shields.io/discord/323460943201959939.svg](https://img.shields.io/discord/323460943201959939.svg)](https://discord.gg/HuR2CF3)
1010

1111
## Features
@@ -56,13 +56,13 @@ Drivers for Go's sql package which currently support database/sql includes:
5656

5757
## Installation
5858

59-
go get github.com/go-xorm/xorm
59+
go get xorm.io/xorm
6060

6161
## Documents
6262

6363
* [Manual](http://xorm.io/docs)
6464

65-
* [GoDoc](http://godoc.org/github.com/go-xorm/xorm)
65+
* [GoDoc](http://godoc.org/xorm.io/xorm)
6666

6767
## Quick Start
6868

@@ -337,7 +337,7 @@ if _, err := session.Exec("delete from userinfo where username = ?", user2.Usern
337337
return nil
338338
```
339339

340-
* Transation should on one go routine. There is transaction and resue session memory
340+
* Transation should be on one go routine. There is transaction and resue session memory
341341

342342
```Go
343343
session := engine.NewSession()
@@ -419,7 +419,7 @@ res, err := engine.Transaction(func(session *xorm.Session) (interface{}, error)
419419

420420
## Contributing
421421

422-
If you want to pull request, please see [CONTRIBUTING](https://github.com/go-xorm/xorm/blob/master/CONTRIBUTING.md). And we also provide [Xorm on Google Groups](https://groups.google.com/forum/#!forum/xorm) to discuss.
422+
If you want to pull request, please see [CONTRIBUTING](https://gitea.com/xorm/xorm/src/branch/master/CONTRIBUTING.md). And we also provide [Xorm on Google Groups](https://groups.google.com/forum/#!forum/xorm) to discuss.
423423

424424
## Credits
425425

README_CN.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# xorm
22

3-
[English](https://github.com/go-xorm/xorm/blob/master/README.md)
3+
[English](https://gitea.com/xorm/xorm/src/branch/master/README.md)
44

55
xorm是一个简单而强大的Go语言ORM库. 通过它可以使数据库操作非常简便。
66

7-
[![CircleCI](https://circleci.com/gh/go-xorm/xorm.svg?style=shield)](https://circleci.com/gh/go-xorm/xorm) [![codecov](https://codecov.io/gh/go-xorm/xorm/branch/master/graph/badge.svg)](https://codecov.io/gh/go-xorm/xorm)
8-
[![](https://goreportcard.com/badge/github.com/go-xorm/xorm)](https://goreportcard.com/report/github.com/go-xorm/xorm)
7+
[![Build Status](https://drone.gitea.com/api/badges/xorm/builder/status.svg)](https://drone.gitea.com/xorm/builder) [![](http://gocover.io/_badge/xorm.io/xorm)](http://gocover.io/xorm.io/xorm)
8+
[![](https://goreportcard.com/badge/xorm.io/xorm)](https://goreportcard.com/report/xorm.io/xorm)
99
[![Join the chat at https://img.shields.io/discord/323460943201959939.svg](https://img.shields.io/discord/323460943201959939.svg)](https://discord.gg/HuR2CF3)
1010

1111
## 特性
@@ -56,15 +56,13 @@ xorm是一个简单而强大的Go语言ORM库. 通过它可以使数据库操作
5656

5757
## 安装
5858

59-
go get github.com/go-xorm/xorm
59+
go get xorm.io/xorm
6060

6161
## 文档
6262

6363
* [操作指南](http://xorm.io/docs)
6464

65-
* [GoWalker代码文档](http://gowalker.org/github.com/go-xorm/xorm)
66-
67-
* [Godoc代码文档](http://godoc.org/github.com/go-xorm/xorm)
65+
* [Godoc代码文档](http://godoc.org/xorm.io/xorm)
6866

6967
# 快速开始
7068

@@ -414,7 +412,7 @@ res, err := engine.Transaction(func(session *xorm.Session) (interface{}, error)
414412

415413
## 贡献
416414

417-
如果您也想为Xorm贡献您的力量,请查看 [CONTRIBUTING](https://github.com/go-xorm/xorm/blob/master/CONTRIBUTING.md)。您也可以加入QQ群 技术帮助和讨论。
415+
如果您也想为Xorm贡献您的力量,请查看 [CONTRIBUTING](https://gitea.com/xorm/xorm/src/branch/master/CONTRIBUTING.md)。您也可以加入QQ群 技术帮助和讨论。
418416
群一:280360085 (已满)
419417
群二:795010183
420418

doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Installation
1010
1111
Make sure you have installed Go 1.6+ and then:
1212
13-
go get github.com/go-xorm/xorm
13+
go get xorm.io/xorm
1414
1515
Create Engine
1616

examples/cache.go

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

7-
"github.com/go-xorm/xorm"
7+
"xorm.io/xorm"
88
_ "github.com/mattn/go-sqlite3"
99
)
1010

examples/cachegoroutine.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"time"
77

88
_ "github.com/go-sql-driver/mysql"
9-
"github.com/go-xorm/xorm"
9+
"xorm.io/xorm"
1010
_ "github.com/mattn/go-sqlite3"
1111
)
1212

examples/conversion.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"os"
77

8-
"github.com/go-xorm/xorm"
8+
"xorm.io/xorm"
99
_ "github.com/mattn/go-sqlite3"
1010
)
1111

examples/derive.go

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

7-
"github.com/go-xorm/xorm"
7+
"xorm.io/xorm"
88
_ "github.com/mattn/go-sqlite3"
99
)
1010

examples/find.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"os"
66
"time"
77

8-
"github.com/go-xorm/xorm"
8+
"xorm.io/xorm"
99
_ "github.com/mattn/go-sqlite3"
1010
)
1111

examples/goroutine.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"runtime"
77

88
_ "github.com/go-sql-driver/mysql"
9-
"github.com/go-xorm/xorm"
9+
"xorm.io/xorm"
1010
_ "github.com/mattn/go-sqlite3"
1111
)
1212

examples/maxconnect.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"runtime"
77

88
_ "github.com/go-sql-driver/mysql"
9-
"github.com/go-xorm/xorm"
9+
"xorm.io/xorm"
1010
_ "github.com/mattn/go-sqlite3"
1111
)
1212

examples/singlemapping.go

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

7-
"github.com/go-xorm/xorm"
7+
"xorm.io/xorm"
88
_ "github.com/mattn/go-sqlite3"
99
)
1010

examples/sync.go

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

66
_ "github.com/go-sql-driver/mysql"
7-
"github.com/go-xorm/xorm"
7+
"xorm.io/xorm"
88
_ "github.com/lib/pq"
99
_ "github.com/mattn/go-sqlite3"
1010
)

examples/tables.go

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

7-
"github.com/go-xorm/xorm"
7+
"xorm.io/xorm"
88
_ "github.com/mattn/go-sqlite3"
99
)
1010

go.mod

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
1-
module github.com/go-xorm/xorm
1+
module xorm.io/xorm
22

33
go 1.11
44

55
require (
6-
github.com/cockroachdb/apd v1.1.0 // indirect
76
github.com/denisenkom/go-mssqldb v0.0.0-20190707035753-2be1aa521ff4
87
github.com/go-sql-driver/mysql v1.4.1
9-
github.com/gofrs/uuid v3.2.0+incompatible // indirect
10-
github.com/jackc/fake v0.0.0-20150926172116-812a484cc733 // indirect
11-
github.com/jackc/pgx v3.6.0+incompatible
8+
github.com/kr/pretty v0.1.0 // indirect
129
github.com/lib/pq v1.0.0
1310
github.com/mattn/go-sqlite3 v1.10.0
14-
github.com/pkg/errors v0.8.1 // indirect
15-
github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24 // indirect
1611
github.com/stretchr/testify v1.4.0
1712
github.com/ziutek/mymysql v1.5.4
1813
xorm.io/builder v0.3.6

0 commit comments

Comments
 (0)