|
@@ 162-171 (lines=10) @@
|
| 159 |
|
* @return mixed |
| 160 |
|
* @throws \chillerlan\Database\Drivers\DBDriverException |
| 161 |
|
*/ |
| 162 |
|
public function raw(string $sql, string $index = null, bool $assoc = true){ |
| 163 |
|
|
| 164 |
|
try{ |
| 165 |
|
return $this->__raw($sql, $index, $assoc); |
| 166 |
|
} |
| 167 |
|
catch(\Exception $e){ |
| 168 |
|
throw new DBDriverException('sql error: ['.get_called_class().'::raw()]'.$e->getMessage()); |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
} |
| 172 |
|
|
| 173 |
|
/** |
| 174 |
|
* @param string $sql |
|
@@ 182-191 (lines=10) @@
|
| 179 |
|
* @return mixed |
| 180 |
|
* @throws \chillerlan\Database\Drivers\DBDriverException |
| 181 |
|
*/ |
| 182 |
|
public function prepared(string $sql, array $values = [], string $index = null, bool $assoc = true){ |
| 183 |
|
|
| 184 |
|
try{ |
| 185 |
|
return $this->__prepared($sql, $values, $index, $assoc); |
| 186 |
|
} |
| 187 |
|
catch(\Exception $e){ |
| 188 |
|
throw new DBDriverException('sql error: ['.get_called_class().'::prepared()] '.$e->getMessage()); |
| 189 |
|
} |
| 190 |
|
|
| 191 |
|
} |
| 192 |
|
|
| 193 |
|
/** |
| 194 |
|
* @param string $sql |