module Sequel::Plugins::PreparedStatements

The prepared_statements plugin modifies the model to use prepared statements for instance level inserts and updates. This plugin exists for backwards compatibility and is not recommended for general use.

Note that this plugin is unsafe in some circumstances, as it can allow up to 2^N prepared statements to be created for each type of insert and update query, where N is the number of columns in the table. It is recommended that you use the prepared_statements_safe plugin in addition to this plugin to reduce the number of prepared statements that can be created, unless you tightly control how your model instances are saved.

Usage:

# Make all model subclasses use prepared statements  (called before loading subclasses)
Sequel::Model.plugin :prepared_statements

# Make the Album class use prepared statements
Album.plugin :prepared_statements