Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\App\ResourceConnection $resource, $connectionName=ModuleDataSetupInterface::DEFAULT_SETUP_CONNECTION) | |
getConnection ($connectionName=null) | |
setTable ($tableName, $realTableName) | |
getTablePlaceholder ($tableName) | |
getTable ($tableName, $connectionName=ResourceConnection::DEFAULT_CONNECTION) | |
tableExists ($table, $connectionName=ResourceConnection::DEFAULT_CONNECTION) | |
run ($sql) | |
startSetup () | |
endSetup () | |
![]() | |
getConnection () | |
getTable ($tableName) | |
tableExists ($table) | |
__construct | ( | \Magento\Framework\App\ResourceConnection | $resource, |
$connectionName = ModuleDataSetupInterface::DEFAULT_SETUP_CONNECTION |
|||
) |
endSetup | ( | ) |
Prepare database after install/upgrade
Implements SetupInterface.
Definition at line 184 of file Setup.php.
getConnection | ( | $connectionName = null | ) |
Get connection object
string | null | $connectionName |
getTable | ( | $tableName, | |
$connectionName = ResourceConnection::DEFAULT_CONNECTION |
|||
) |
getTablePlaceholder | ( | $tableName | ) |
Gets table placeholder by table name
string | $tableName |
Implements SetupInterface.
Definition at line 108 of file Setup.php.
run | ( | $sql | ) |
Run plain SQL query(ies)
string | $sql |
Implements SetupInterface.
Definition at line 162 of file Setup.php.
setTable | ( | $tableName, | |
$realTableName | |||
) |
Add table placeholder/table name relation
string | $tableName | |
string | $realTableName |
Implements SetupInterface.
Definition at line 96 of file Setup.php.
startSetup | ( | ) |
Prepare database before install/upgrade
Implements SetupInterface.
Definition at line 173 of file Setup.php.
tableExists | ( | $table, | |
$connectionName = ResourceConnection::DEFAULT_CONNECTION |
|||
) |
Check is table exists
string | $table | |
string | $connectionName |
Definition at line 150 of file Setup.php.