Sha256: e7d230d2f2b15e720c45883bbd26c92245838fc21508166f7c015c7a9f17fc99

Contents?: true

Size: 471 Bytes

Versions: 39

Compression:

Stored size: 471 Bytes

Contents

module Bmg
  module Sql
    module FuncCall
      include Expr

      def func_name
        self[1]
      end

      def func_args
        self[2..-1]
      end

      def is_computed?
        true
      end

      def to_sql(buffer, dialect)
        buffer << summary_name.upcase << "("
        buffer << func_args.map{|fa| fa.to_sql("", dialect) }.join(', ')
        buffer << ")"
        buffer
      end

    end # module FuncCall
  end # module Sql
end # module Bmg

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
bmg-0.18.13 lib/bmg/sql/nodes/func_call.rb
bmg-0.18.12 lib/bmg/sql/nodes/func_call.rb
bmg-0.18.11 lib/bmg/sql/nodes/func_call.rb
bmg-0.18.10 lib/bmg/sql/nodes/func_call.rb
bmg-0.18.9 lib/bmg/sql/nodes/func_call.rb
bmg-0.18.8 lib/bmg/sql/nodes/func_call.rb
bmg-0.18.7 lib/bmg/sql/nodes/func_call.rb
bmg-0.18.6 lib/bmg/sql/nodes/func_call.rb
bmg-0.18.5 lib/bmg/sql/nodes/func_call.rb
bmg-0.18.4 lib/bmg/sql/nodes/func_call.rb
bmg-0.18.3 lib/bmg/sql/nodes/func_call.rb
bmg-0.18.2 lib/bmg/sql/nodes/func_call.rb
bmg-0.18.1 lib/bmg/sql/nodes/func_call.rb
bmg-0.18.0 lib/bmg/sql/nodes/func_call.rb
bmg-0.17.8 lib/bmg/sql/nodes/func_call.rb
bmg-0.17.7 lib/bmg/sql/nodes/func_call.rb
bmg-0.17.6 lib/bmg/sql/nodes/func_call.rb
bmg-0.17.5 lib/bmg/sql/nodes/func_call.rb
bmg-0.17.4 lib/bmg/sql/nodes/func_call.rb