def get_table_columns(self, doctype):
		return [r[0] for r in self.sql("DESC `tab%s`" % doctype)]
Returns list of column names from given doctype.
dataset/ETHPy150Open frappe/frappe/frappe/database.py/Database.get_table_columns