Is there a way to enforce my Worker function has read-only access to data stored in D1 on an API/net

Is there a way to enforce my Worker function has read-only access to data stored in D1 on an API/network level?
I don't think there is, but wanted to confirm
Was this page helpful?