Parent

Methods

Class Index [+]

Quicksearch

Sequel::Postgres::AutoParameterize::StringWithArray

String that holds an array of parameters

Attributes

args[R]

The array of parameters used by this query.

Public Instance Methods

add_arg(s, type) click to toggle source

Add a new parameter to this query, which adds the parameter to the array of parameters, and an SQL placeholder to the query itself.

    # File lib/sequel/extensions/pg_auto_parameterize.rb, line 75
75:         def add_arg(s, type)
76:           @args ||= []
77:           @args << s
78:           self << "$#{@args.length}::#{type}"
79:         end
inspect() click to toggle source

Show args when the string is inspected

    # File lib/sequel/extensions/pg_auto_parameterize.rb, line 82
82:         def inspect
83:           @args ? "#{self}; #{@args.inspect}".inspect : super
84:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.