GetSuperUserDB gets a connection to the "postgres" database on this instance
()
| 873 | |
| 874 | // GetSuperUserDB gets a connection to the "postgres" database on this instance |
| 875 | func (instance *Instance) GetSuperUserDB() (*sql.DB, error) { |
| 876 | return instance.ConnectionPool().Connection("postgres") |
| 877 | } |
| 878 | |
| 879 | // GetMetricsDB gets a connection to the named database authenticated as cnpg_metrics_exporter. |
| 880 | func (instance *Instance) GetMetricsDB(dbname string) (*sql.DB, error) { |
no test coverage detected