Change owner of document

As far as I’m aware, the only way to change a document owner is direct in the database or via an equivalent frappe.db.sql call or frappe.db.set_value(doctype, name, fieldname, value):

UPDATE `tabDoc Type Here`
SET owner='user@domain.com'
WHERE name='Document Name';