dbSchemaReader = $dbSchemaReader; } /** * Describe shards. * * @param string $shardName * @return array */ public function describeShard($shardName) { $data = []; $tables = $this->dbSchemaReader->readTables($shardName); foreach ($tables as $table) { if (in_array($table, self::$ignoredSystemTables)) { continue; } $data[$table] = $this->dbSchemaReader->getCreateTableSql($table, $shardName)['Create Table']; } return $data; } }