$options
$options : array
Phinx PDO Adapter.
$input : \think\console\Input
$output : \think\console\Output
__construct(array $options, \think\console\Input $input = null, \think\console\Output $output = null)
Class Constructor.
array | $options | Options |
\think\console\Input | $input | Input Interface |
\think\console\Output | $output | Output Interface |
setOptions(array $options) : \Phinx\Db\Adapter\AdapterInterface
Set adapter configuration options.
array | $options |
setInput(\think\console\Input $input) : \Phinx\Db\Adapter\AdapterInterface
Sets the console input.
\think\console\Input | $input | Input |
getInput() : \think\console\Input
Gets the console input.
setOutput(\think\console\Output $output) : \Phinx\Db\Adapter\AdapterInterface
Sets the console output.
\think\console\Output | $output | Output |
getOutput() : \think\console\Output
Gets the console output.
setSchemaTableName(string $schemaTableName) : \Phinx\Db\Adapter\PdoAdapter
Sets the schema table name.
string | $schemaTableName | Schema Table Name |
setConnection(\PDO $connection) : \Phinx\Db\Adapter\AdapterInterface
Sets the database connection.
\PDO | $connection | Connection |
setCommandStartTime(integer $time) : \Phinx\Db\Adapter\AdapterInterface
Sets the command start time
integer | $time |
insert(\Phinx\Db\Table $table, array $row) : void
Inserts data into a table.
\Phinx\Db\Table | $table | where to insert data |
array | $row |
migrated(\Phinx\Migration\MigrationInterface $migration, string $direction, integer $startTime, integer $endTime) : \Phinx\Db\Adapter\AdapterInterface
Records a migration being run.
\Phinx\Migration\MigrationInterface | $migration | Migration |
string | $direction | Direction |
integer | $startTime | Start Time |
integer | $endTime | End Time |
toggleBreakpoint(\Phinx\Migration\MigrationInterface $migration) : \Phinx\Db\Adapter\AdapterInterface
Toggle a migration breakpoint.
\Phinx\Migration\MigrationInterface | $migration |
isValidColumnType(\Phinx\Db\Table\Column $column) : boolean
Checks that the given column is of a supported type.
\Phinx\Db\Table\Column | $column |