Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
setup-integration
framework
Magento
TestFramework
Deploy
DescribeTable.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\TestFramework\Deploy
;
7
8
use
Magento\Framework\Setup\Declaration\Schema\Db\MySQL\DbSchemaReader
;
9
13
class
DescribeTable
14
{
20
private
$dbSchemaReader;
21
27
private
static
$ignoredSystemTables = [
'cache'
,
'cache_tag'
,
'flag'
,
'session'
,
'setup_module'
,
'patch_list'
];
28
34
public
function
__construct
(
DbSchemaReader
$dbSchemaReader)
35
{
36
$this->dbSchemaReader = $dbSchemaReader;
37
}
38
45
public
function
describeShard
($shardName)
46
{
47
$data
= [];
48
$tables = $this->dbSchemaReader->readTables($shardName);
49
50
foreach
($tables as
$table
) {
51
if
(in_array(
$table
, self::$ignoredSystemTables)) {
52
continue
;
53
}
54
55
$data
[
$table
] = $this->dbSchemaReader->getCreateTableSql(
$table
, $shardName)[
'Create Table'
];
56
}
57
58
return
$data
;
59
}
60
}
Magento\Framework\Setup\Declaration\Schema\Db\MySQL\DbSchemaReader
Definition:
DbSchemaReader.php:18
Magento\TestFramework\Deploy
Definition:
CliCommand.php:6
Magento\TestFramework\Deploy\DescribeTable
Definition:
DescribeTable.php:13
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\TestFramework\Deploy\DescribeTable\__construct
__construct(DbSchemaReader $dbSchemaReader)
Definition:
DescribeTable.php:34
Magento\TestFramework\Deploy\DescribeTable\describeShard
describeShard($shardName)
Definition:
DescribeTable.php:45
$table
$table
Definition:
trigger.php:14