mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-31 21:00:02 +02:00
Migrate to dep (#3972)
* Update makefile to use dep * Migrate to dep * Fix some deps * Try to find a better version for golang.org/x/net * Try to find a better version for golang.org/x/oauth2
This commit is contained in:
parent
d7fd9bf7bb
commit
3f3383dc0a
281 changed files with 12024 additions and 32676 deletions
24
vendor/github.com/go-xorm/tidb/README.md
generated
vendored
24
vendor/github.com/go-xorm/tidb/README.md
generated
vendored
|
@ -1,24 +0,0 @@
|
|||
tidb driver and dialect for github.com/go-xorm/xorm
|
||||
========
|
||||
|
||||
Currently, we can support tidb for allmost all the operations.
|
||||
|
||||
# How to use
|
||||
|
||||
Just like other supports of xorm, but you should import the three packages:
|
||||
|
||||
```Go
|
||||
import (
|
||||
_ "github.com/pingcap/tidb"
|
||||
_ "github.com/go-xorm/tidb"
|
||||
"github.com/go-xorm/xorm"
|
||||
)
|
||||
|
||||
//The formate of DataSource name is store://uri/dbname
|
||||
// for goleveldb as store
|
||||
xorm.NewEngine("tidb", "goleveldb://./tidb/tidb")
|
||||
// for memory as store
|
||||
xorm.NewEngine("tidb", "memory://tidb/tidb")
|
||||
// for boltdb as store
|
||||
xorm.NewEngine("tidb", "boltdb://./tidb/tidb")
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue