13 $this->schema = new \Bitrix\Perfmon\Sql\Schema;
25 if (is_a(
$connection,
'\Bitrix\Main\DB\MysqliConnection'))
35 throw new \Bitrix\Main\DB\ConnectionException(
'Unsupported connection type.');
63 $table = $this->schema->tables->search($tableName);
66 $table = new \Bitrix\Perfmon\Sql\Table($tableName);
67 $this->schema->tables->add($table);
80 public function getIndexes($tableName)
86 foreach ($table->indexes->getList() as $index)
88 $result[$index->name] = $index->columns;
101 public function getUniqueIndexes($tableName)
107 foreach ($table->indexes->getList() as $index)
111 $result[$index->name] = $index->columns;
125 public function getFullTextIndexes($tableName)
131 foreach (
$table->indexes->getList() as $index)
133 if ($index->fulltext)
135 $result[$index->name] = $index->columns;
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)