WebDyne::Cloudflare::D1::Statement

Create statements through $db_or->prepare($sql). bind(@params) returns a new statement without modifying the original. Pass these statements to $db_or->batch([$statement_or, ...]) for atomic execution. Every statement must originate from that exact database object.

Statements retain their originating database capability and must not outlive its request. Failures use WebDyne::Cloudflare::D1::Error.

Statements prepared by a D1 session retain that session through bind() and execution. Session batches require the exact same owning session object, just as ordinary batches require the same database object.