| 1 | <?php |
| 2 | namespace Wikimedia\Rdbms\Database; |
| 3 | |
| 4 | use Wikimedia\Rdbms\Blob; |
| 5 | use Wikimedia\Rdbms\RawSQLValue; |
| 6 | |
| 7 | /** |
| 8 | * @internal |
| 9 | */ |
| 10 | interface DbQuoter { |
| 11 | /** |
| 12 | * Escape and quote a raw value string for use in a SQL query |
| 13 | * |
| 14 | * @param ?scalar|RawSQLValue|Blob $s |
| 15 | * @param-taint $s escapes_sql |
| 16 | * @return string |
| 17 | * @return-taint none |
| 18 | */ |
| 19 | public function addQuotes( $s ); |
| 20 | } |