Class: Baza::Driver::Mysql::Sqlspecs

Inherits:
Sqlspecs
  • Object
show all
Defined in:
lib/baza/driver/mysql/sqlspecs.rb

Instance Method Summary collapse

Methods inherited from Sqlspecs

#initialize

Constructor Details

This class inherits a constructor from Baza::Sqlspecs

Instance Method Details

#strftime(val, colstr) ⇒ Object



2
3
4
# File 'lib/baza/driver/mysql/sqlspecs.rb', line 2

def strftime(val, colstr)
  "DATE_FORMAT(#{colstr}, '#{val}')"
end