`frappe.db.get_all` or `frappe.db.get_list` from Client Script

We migrated from ERPNext v13 to v14. One of the scripts had a frappe.db.get_list pulling data from a child table doctype. This is now failing, and we are unable to use that or the related frappe.db.get_all method, saying that it’s not accessible.

Is there a way to run the frappe.db.get_all method from client side?