MCPcopy Create free account
hub / github.com/Rello/analytics / columnDescriptor

Method columnDescriptor

lib/Db/FlexibleStorageMapper.php:389–400  ·  view source on GitHub ↗

@param array $row */

(array $row)

Source from the content-addressed store, hash-verified

387
388 /** @param array<string,mixed> $row */
389 private function columnDescriptor(array $row): array {
390 return [
391 'id' => (int)$row['id'],
392 'ref' => 'c_' . (int)$row['id'],
393 'name' => (string)$row['name'],
394 'type' => (string)$row['logical_type'],
395 'role' => (string)$row['column_role'],
396 'position' => (int)$row['display_position'],
397 'nullable' => (bool)$row['nullable_flag'],
398 'defaultAggregation' => $row['default_aggregation'],
399 ];
400 }
401}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected