'Check whether a column is primary key on a table.'

def does_pk_exist(self, table, pk_column):

    inspector = reflection.Inspector.from_engine(self.engine)
    pk_columns = inspector.get_pk_constraint(table)['constrained_columns']
    return (pk_column in pk_columns)
