-
Notifications
You must be signed in to change notification settings - Fork 892
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,12 @@ | |
namespace Phinx\Migration; | ||
|
||
use Cake\Database\Query; | ||
use Cake\Database\Query\{ | ||
SelectQuery, | ||
InsertQuery, | ||
UpdateQuery, | ||
DeleteQuery | ||
}; | ||
use Phinx\Db\Adapter\AdapterInterface; | ||
use Phinx\Db\Table; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
|
@@ -165,6 +171,50 @@ public function query(string $sql, array $params = []): mixed; | |
*/ | ||
public function getQueryBuilder(string $type): Query; | ||
|
||
/** | ||
* Returns a new SelectQuery object that can be used to build complex | ||
* SELECT queries and execute them against the current database. | ||
* | ||
* Queries executed through the query builder are always sent to the database, regardless of the | ||
* the dry-run settings. | ||
* | ||
* @return \Cake\Database\SelectQuery | ||
*/ | ||
public function getSelectBuilder(): SelectQuery; | ||
Check failure on line 183 in src/Phinx/Migration/MigrationInterface.php GitHub Actions / Coding Standard & Static Analysis
Check failure on line 183 in src/Phinx/Migration/MigrationInterface.php GitHub Actions / Coding Standard & Static Analysis
|
||
|
||
/** | ||
* Returns a new InsertQuery object that can be used to build complex | ||
* INSERT queries and execute them against the current database. | ||
* | ||
* Queries executed through the query builder are always sent to the database, regardless of the | ||
* the dry-run settings. | ||
* | ||
* @return \Cake\Database\InsertQuery | ||
*/ | ||
public function getInsertBuilder(): InsertQuery; | ||
Check failure on line 194 in src/Phinx/Migration/MigrationInterface.php GitHub Actions / Coding Standard & Static Analysis
Check failure on line 194 in src/Phinx/Migration/MigrationInterface.php GitHub Actions / Coding Standard & Static Analysis
|
||
|
||
/** | ||
* Returns a new UpdateQuery object that can be used to build complex | ||
* UPDATE queries and execute them against the current database. | ||
* | ||
* Queries executed through the query builder are always sent to the database, regardless of the | ||
* the dry-run settings. | ||
* | ||
* @return \Cake\Database\UpdateQuery | ||
*/ | ||
public function getUpdateBuilder(): UpdateQuery; | ||
Check failure on line 205 in src/Phinx/Migration/MigrationInterface.php GitHub Actions / Coding Standard & Static Analysis
Check failure on line 205 in src/Phinx/Migration/MigrationInterface.php GitHub Actions / Coding Standard & Static Analysis
|
||
|
||
/** | ||
* Returns a new DeleteQuery object that can be used to build complex | ||
* DELETE queries and execute them against the current database. | ||
* | ||
* Queries executed through the query builder are always sent to the database, regardless of the | ||
* the dry-run settings. | ||
* | ||
* @return \Cake\Database\DeleteQuery | ||
*/ | ||
public function getDeleteBuilder(): DeleteQuery; | ||
Check failure on line 216 in src/Phinx/Migration/MigrationInterface.php GitHub Actions / Coding Standard & Static Analysis
Check failure on line 216 in src/Phinx/Migration/MigrationInterface.php GitHub Actions / Coding Standard & Static Analysis
|
||
|
||
/** | ||
* Executes a query and returns only one row as an array. | ||
* | ||
|