server/prepared library
Prepared statements: parse-once / bind-many surface for Database.
The hard work is done by Parser (which counts ? placeholders and
collects named parameters into paramCount / namedParams) and by
BindParamExpr (which looks bindings up via a static scope stack at
eval time). This file just owns the public API and the
scope-push/pop dance.
Classes
- PreparedStatement
- A statement parsed once and re-bindable. Hold on to the prepared statement and call execute repeatedly with different parameter values to avoid re-parsing.