public function queryTableInformation($table) { // Generate a key to reference this table's information on.
$prefixed_table =
$this->connection->
getPrefix() .
$table;
$key =
$this->connection->
prefixTables('{' .
$table . '}'
);
// Take into account that temporary tables are stored in a different schema.
// \Drupal\Core\Database\Connection::generateTemporaryTableName() sets the
// 'db_temporary_' prefix to all temporary tables.
if (str_contains($table, 'db_temporary_'
)) { $key =
$quoted_key =
$this->
getTempNamespaceName() . '.' .
$prefixed_table;
} else { $key =
$this->defaultSchema . '.' .
$prefixed_table;
$quoted_key = '"' .
$this->defaultSchema . '"."' .
$prefixed_table . '"';
} if (!
isset($this->tableInformation
[$key])) { $table_information =
(object) [ 'blob_fields' =>
[],
'sequences' =>
[],
];