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.

SQL::Abstract v0.0.9

Generate SQL from Raku data structures

Authors

  • Leon Timmermans

License

Artistic-2.0

Dependencies

Test Dependencies

Provides

  • SQL::Abstract
  • SQL::Placeholders
  • SQL::Query

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.