Functions in Metabase

SELECT * FROM "purchaseOrder"."getPurchaseOrderWithProofs"();
this is the function getPurchaseOrderWithProofs"()that we have created in postgres SQL
i want to run it on Metabase
How can I ?

Either through freehand SQL (optionally convert to a model)
or just create a view on the database.