'Return the name of the primary key column for the given table.'

def get_primary_key_column(self, cursor, table_name):

    for constraint in self.get_constraints(cursor, table_name).values():
        if constraint['primary_key']:
            return constraint['columns'][0]
    return None
