Returns an array of field names from an array of key/index column specifiers.
This is usually an identity function but if a key/index uses a column prefix specification, this function extracts just the name.
$fields: An array of key/index column specifiers.
An array of field names.
function db_field_names($fields) {
return Database::getConnection()
->schema()
->fieldNames($fields);
}