Module: OrientDB::SQL::BundledFunctionExtension

Includes:
UtilsMixin
Defined in:
lib/orientdb/sql/ext.rb

Instance Method Summary collapse

Methods included from UtilsMixin

#field_name, #quote, #quote_regexp, #quote_string, #select_single_string

Instance Method Details

#odb_avgObject

Avoided overriding the native method



230
231
232
# File 'lib/orientdb/sql/ext.rb', line 230

def odb_avg
  "avg(#{to_s})"
end

#odb_countObject

Avoided overriding the native method



215
216
217
# File 'lib/orientdb/sql/ext.rb', line 215

def odb_count
  "count(#{to_s})"
end

#odb_format_str(*args) ⇒ Object

Avoided overriding the native method



244
245
246
# File 'lib/orientdb/sql/ext.rb', line 244

def odb_format_str(*args)
  "format('#{to_s}', #{args.map{|x| quote(x)}.join(', ')})"
end

#odb_maxObject

Avoided overriding the native method



225
226
227
# File 'lib/orientdb/sql/ext.rb', line 225

def odb_max
  "max(#{to_s})"
end

#odb_minObject

Avoided overriding the native method



220
221
222
# File 'lib/orientdb/sql/ext.rb', line 220

def odb_min
  "min(#{to_s})"
end

#odb_sumObject

Avoided overriding the native method



235
236
237
# File 'lib/orientdb/sql/ext.rb', line 235

def odb_sum
  "sum(#{to_s})"
end

#sysdateObject



239
240
241
# File 'lib/orientdb/sql/ext.rb', line 239

def sysdate
  "sysdate('#{to_s}')"
end