I am inserted data successfully. but i want to get the result whether data is inserted or not. my code is:
unit_type.to_sql(con=self.mysql_hermes.conn, name='CiqHistEleData',
if_exists='append', flavor='mysql', index=False)
i want result in one variable true or false.