github.com/pingcap/chaos@v0.0.0-20190710112158-c86faf4b3719/db/rawkv/db.go (about) 1 package rawkv 2 3 import ( 4 "github.com/pingcap/chaos/db/cluster" 5 "github.com/pingcap/chaos/pkg/core" 6 ) 7 8 // db is the TiDB database. 9 type db struct { 10 cluster.Cluster 11 } 12 13 // Name returns the unique name for the database 14 func (db *db) Name() string { 15 return "rawkv" 16 } 17 18 func init() { 19 core.RegisterDB(&db{ 20 // RawKV does not use TiDB. 21 cluster.Cluster{IncludeTidb: false}, 22 }) 23 }