`preparedStatement.statement` is not meant to be used by client Worker code (i.e. you). You have acc

preparedStatement.statement is not meant to be used by client Worker code (i.e. you). You have access to the statement since you are the one providing it to the prepare() method, so use that instead.

Accessing private (as in non-documented) fields is a great recipe for future breakages when we change those fields. We do need to hide them properly (or whatever that will be in the JS world by obfuscating...) on our side though.

After you prepare() and optionally
bind()
, only call these methods: https://developers.cloudflare.com/d1/worker-api/prepared-statements/
Was this page helpful?