Placeholders
Name
SQL::Placeholders - pluggable placeholder management
Description
This package abstracts away the difference between different styles of placeholders. It's an interface with currently only two methods:
values(--> List)
This returns the values of all bound values.
bind($value --> Str)
This adds adds a bound value, and returns the string that should be inserted into the SQL in its place.
Implementations
It currently offers two implementations of the Placeholders role.
Placeholders::DBI
This is for DBI style placeholders, e.g. ?, ?.
Placeholders::Postgres
This is for postgres style placeholders, e.g. $1, $2.