Method: JDBCHelper::SQLPrepared.update

Defined in:
lib/jdbc-helper/sql/sql_prepared.rb

.update(table, data_hash, where) ⇒ Object

Deprecated.

Generates update SQL with hash. :where element of the given hash is taken out to generate where clause.



43
44
45
46
47
# File 'lib/jdbc-helper/sql/sql_prepared.rb', line 43

def self.update table, data_hash, where
  sql, *binds =
    SQLHelper.update :table => table, :data => data_hash, :where => where, :prepared => true
  [sql, binds]
end