lib/model/the_class.rb
Sets a value to certain attributes, overwrites existing entries, creates new attributes if nessesary

  IB::Account.update_all connected: false
  IB::Account.update_all where: "account containsText 'F'", set:{ connected: false }

**note: By calling UpdateAll, all records of the Class previously stored in the rid-cache are removed from the cache. Thus autoload gets the updated records.


By calling UpdateAll, all records of the Class previously stored in the rid-cache are removed from the cache. Thus autoload gets the updated records.
By calling UpdateAll all records of the Class previously stored in the rid - cache are removed from the cache . Thus autoload gets the updated records .
def update_all where: {} , set: {},  **arg
    if where.empty?
      set.merge! arg
    end
    db.update_records  self, set: set, where: where
  end
def update_all where : { } , set : { } , ** arg if where . empty? set . merge! arg end db . update_records self , set : set , where : where end
Sets a value to certain attributes, overwrites existing entries, creates new attributes if nessesary
IB::Account.update_all connected: false
IB::Account.update_all where: "account containsText 'F'", set:{ connected: false }
Sets a value to certain attributes overwrites existing entries creates new attributes if nessesary IB :: Account . update_all connected : false IB :: Account . update_all where : " account containsText ' F ' " set : { connected : false }
where
<not_specific>
set
<not_specific>
arg
<not_specific>