def get_singles_dict(self, doctype):
		return frappe._dict(self.sql("""select field, value from
			tabSingles where doctype=%s""", doctype))
Get Single DocType as dict.
dataset/ETHPy150Open frappe/frappe/frappe/database.py/Database.get_singles_dict