| 1 |
<?php |
| 2 |
/* |
| 3 |
* This file is part of the ManageWP Worker plugin. |
| 4 |
* |
| 5 |
* (c) ManageWP LLC <contact@managewp.com> |
| 6 |
* |
| 7 |
* For the full copyright and license information, please view the LICENSE |
| 8 |
* file that was distributed with this source code. |
| 9 |
*/ |
| 10 |
|
| 11 |
interface MWP_IncrementalBackup_Database_ConnectionInterface |
| 12 |
{ |
| 13 |
/** |
| 14 |
* @param string $query |
| 15 |
* @param bool $useResult When true, the returned statement HAS TO BE CLOSED MANUALLY before issuing another query. |
| 16 |
* Use this for selecting large amounts of data |
| 17 |
* |
| 18 |
* @return MWP_IncrementalBackup_Database_StatementInterface |
| 19 |
*/ |
| 20 |
public function query($query, $useResult = false); |
| 21 |
|
| 22 |
/** |
| 23 |
* @param mixed $value any primitive value |
| 24 |
* |
| 25 |
* @return string Quoted string e.g. 'hello' with opening and closing quotes |
| 26 |
*/ |
| 27 |
public function quote($value); |
| 28 |
} |
| 29 |
|