Sha256: 02d946186bf7d635c28ca82be74e1ab80ba82e1f3ea589c866410e33a82928f5
Contents?: true
Size: 1.28 KB
Versions: 1
Compression:
Stored size: 1.28 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>update (Marjoree)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 109</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>(<span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">where_map</span>={}, <span class="ruby-identifier">map</span>={}) <span class="ruby-identifier">where_clause</span> = <span class="ruby-identifier">build_where_statement</span>(<span class="ruby-identifier">where_map</span>) <span class="ruby-identifier">assignments</span> = <span class="ruby-identifier">build_set_statement</span>(<span class="ruby-identifier">map</span>) <span class="ruby-identifier">execute</span> <span class="ruby-node">"UPDATE #{table_name} SET #{assignments} #{where_clause}"</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
marjoree-0.0.9 | ./html/classes/Marjoree.src/M000066.html |