SchemaImportCommand
extends Command
in package
FinalYes
Command.
Table of Contents
Properties
- $pdo : PDO
Methods
- __construct() : mixed
- The constructor.
- configure() : void
- Configure.
- execute() : int
- Execute command.
- query() : PDOStatement
- Create query statement.
Properties
$pdo
private
PDO
$pdo
Methods
__construct()
The constructor.
public
__construct(PDO $pdo[, string|null $name = null ]) : mixed
Parameters
- $pdo : PDO
-
The database connection
- $name : string|null = null
-
The name
configure()
Configure.
protected
configure() : void
execute()
Execute command.
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
-
The input
- $output : OutputInterface
-
The output
Return values
int —The error code, 0 on success
query()
Create query statement.
private
query(string $sql) : PDOStatement
Parameters
- $sql : string
-
The sql
Tags
Return values
PDOStatement —The statement