Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def select(self, **kwargs):
query = SelectQueryBuilder(**kwargs).query
config.logger.debug(query)
self.db.execute(*query)
results = self.db.cursor().fetchall()
return pandas.DataFrame.from_records(list(results), columns=self.columns(), coerce_float=True)
def delete(self, **kwargs):
query = DeleteQueryBuilder(**kwargs).query
config.logger.debug(query)
self.db.execute(*query)
def raw_query(self, **kwargs):
query = RawQueryBuilder(**kwargs).query
config.logger.debug(query)
self.db.execute(*query)
if self.db.cursor().description:
results = self.db.cursor().fetchall()
return pandas.DataFrame.from_records(list(results), columns=self.columns(), coerce_float=True)
else:
return None