public function dbQuery($dsId, $sql) { $conn = $this->getConnection($dsId); if (!$conn) { throw new RuntimeException("data source {$dsId} is not defined."); } return $conn->query($sql); }