package datasource

import "strings"

const (
	ComponentType = "component_type"
	InstanceName  = "instance_name"

	LabelComponent     = "component"
	LabelInstance      = "instance"
	LabelCluster       = "cluster_name"
	LabelClusterID     = "cluster_id"
	LabelProjectID     = "project_id"
	LabelInstanceID    = "instance_id"
	LabelSQLType       = "sql_type"
	LabelType          = "type"
	LabelLE            = "le"
	LabelResult        = "result"
	LabelInTxn         = "in_txn"
	LabelTxnMode       = "txn_mode"
	LabelChangefeedID  = "changefeed_id"
	LabelResourceGroup = "resource_group"
	LabelDevice        = "device"
	LabelDMJobID       = "job_id"
	LabelDMTask        = "task"
)

func UnifyDBName(i string) string {
	return strings.TrimLeft(i, "db-")
}
