Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
|
9 years ago | |
|---|---|---|
| .. | ||
| README.md | 9 years ago | |
| tidb_dialect.go | 9 years ago | |
| tidb_driver.go | 9 years ago | |
Currently, we can support tidb for allmost all the operations.
Just like other supports of xorm, but you should import the three packages:
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")
No Description
Go SVG JavaScript Vue Roff other