lib/metasql/query.rb
# Rebuild query from parsed tokens.
# For supplying parameter value, call `with()` before this method.
Rebuild query from parsed tokens.
For supplying parameter value, call `with()` before this method.
Rebuild query from parsed tokens . For supplying parameter value call ` with () ` before this method .
def deparse
      parsed.map do |token|
        case token
        when Metasql::Optional
          substitute_optional(query_array: token.query)
        when Metasql::Param
          substitute_param(param: token)
        else
          token
        end
      end.join
    end
def deparse parsed . map do | token | case token when Metasql :: Optional substitute_optional ( query_array : token . query ) when Metasql :: Param substitute_param ( param : token ) else token end end . join end
Rebuild query from parsed tokens.
Rebuild query from parsed tokens .