class SQLite3::Statement
def bind_params( *bind_vars )
See also #execute, #bind_param, Statement#bind_param, and
stmt.bind_params( 15, "hello" )
stmt = db.prepare( "select * from table where a=? and b=?" )
Example:
syntaxes.
See Database#execute for a description of the valid placeholder
text.
Binds the given variables to the corresponding placeholders in the SQL
def bind_params( *bind_vars ) index = 1 bind_vars.flatten.each do |var| if Hash === var var.each { |key, val| bind_param key, val } else bind_param index, var index += 1 end end end