Fork to maintain patches against the official gitea for https://code.ceondo.com https://github.com/go-gitea/gitea

models_tidb.go 354B

12345678910111213141516171819
  1. // +build tidb
  2. // Copyright 2015 The Gogs Authors. All rights reserved.
  3. // Use of this source code is governed by a MIT-style
  4. // license that can be found in the LICENSE file.
  5. package models
  6. import (
  7. _ "github.com/go-xorm/tidb"
  8. "github.com/ngaut/log"
  9. _ "github.com/pingcap/tidb"
  10. )
  11. func init() {
  12. EnableTiDB = true
  13. log.SetLevelByString("error")
  14. }