package datasource

import "strings"

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

	LabelComponent     = "component"
	LabelInstance      = "instance"
	LabelCluster       = "cluster_name"
	LabelSQLType       = "sql_type"
	LabelType          = "type"
	LabelLE            = "le"
	LabelResult        = "result"
	LabelInTxn         = "in_txn"
	LabelTxnMode       = "txn_mode"
	LabelChangefeedID  = "changefeed_id"
	LabelResourceGroup = "resource_group"
	LabelDevice        = "device"
)

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