// IsTiDB returns true if this database is tidb
IsTiDB returns true if this database is tidb
// IsTiDB returns true if this database is tidb
func IsTiDB(ctx context.Context, db *sql.DB) (bool, error) {
	version, err := GetDBVersion(ctx, db)
	if err != nil {
		log.Errorf("get database's version meets error %v", err)
		return false, errors.Trace(err)
	}
	return strings.Contains(strings.ToLower(version), "tidb"), nil
}
func IsTiDB ( ctx context . Context , db * sql . DB ) ( bool , error ) { version , err := GetDBVersion ( ctx , db ) if err != nil { log . Errorf ( " " , err ) return false , errors . Trace ( err ) } return strings . Contains ( strings . ToLower ( version ) , " " ) , nil }
IsTiDB returns true if this database is tidb
IsTiDB returns true if this database is tidb