Grafana - Variable for database name


I’m looking for a variable in Grafana to get the database name.
Actually, i use $datasource var, as my datasource name is the same as my database name, but in some cases, i need to get the database_name.
Is there a way to get the database name (not the datasource name) in a variable usable in grafana?