Class: Sequel::SQL::PlaceholderLiteralString

Class | Sequel::SQL::PlaceholderLiteralString
In: | lib/sequel_core/sql.rb
Parent: | SpecificExpression

Represents a literal string with placeholders and arguments. This is necessary to ensure delayed literalization of the arguments required for the prepared statement support

### Methods

new to_s

### Attributes

args | [R] | The arguments that will be subsituted into the placeholders.
parens | [R] | Whether to surround the expression with parantheses
str | [R] | The literal string containing placeholders

### Public Class methods

new(str, args, parens=false)

Create an object with the given conditions and default value.

[Source]

         # File lib/sequel_core/sql.rb, line 696
    696:       def initialize(str, args, parens=false)
    697:         @str = str
    698:         @args = args
    699:         @parens = parens
    700:       end

### Public Instance methods

to_s(ds)

Delegate the creation of the resulting SQL to the given dataset, since it may be database dependent.

[Source]

         # File lib/sequel_core/sql.rb, line 704
    704:       def to_s(ds)
    705:         ds.placeholder_literal_string_sql(self)
    706:       end

[Validate]