Module: OrientDB::SQL::BundledFunctionExtension
- Includes:
- UtilsMixin
- Defined in:
- lib/orientdb/sql/ext.rb
Instance Method Summary collapse
-
#odb_avg ⇒ Object
Avoided overriding the native method.
-
#odb_count ⇒ Object
Avoided overriding the native method.
-
#odb_format_str(*args) ⇒ Object
Avoided overriding the native method.
-
#odb_max ⇒ Object
Avoided overriding the native method.
-
#odb_min ⇒ Object
Avoided overriding the native method.
-
#odb_sum ⇒ Object
Avoided overriding the native method.
- #sysdate ⇒ Object
Methods included from UtilsMixin
#field_name, #quote, #quote_regexp, #quote_string, #select_single_string
Instance Method Details
#odb_avg ⇒ Object
Avoided overriding the native method
230 231 232 |
# File 'lib/orientdb/sql/ext.rb', line 230 def odb_avg "avg(#{to_s})" end |
#odb_count ⇒ Object
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_max ⇒ Object
Avoided overriding the native method
225 226 227 |
# File 'lib/orientdb/sql/ext.rb', line 225 def odb_max "max(#{to_s})" end |
#odb_min ⇒ Object
Avoided overriding the native method
220 221 222 |
# File 'lib/orientdb/sql/ext.rb', line 220 def odb_min "min(#{to_s})" end |
#odb_sum ⇒ Object
Avoided overriding the native method
235 236 237 |
# File 'lib/orientdb/sql/ext.rb', line 235 def odb_sum "sum(#{to_s})" end |
#sysdate ⇒ Object
239 240 241 |
# File 'lib/orientdb/sql/ext.rb', line 239 def sysdate "sysdate('#{to_s}')" end |