Sha256: 972c748549c0a52fa3f636bdfd2d4ff4ea6fa987bbe50f0d6c54b81b29438720
Contents?: true
Size: 1.42 KB
Versions: 1
Compression:
Stored size: 1.42 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>num_rows (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 74</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">num_rows</span>( <span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">where_map</span> = <span class="ruby-keyword kw">nil</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">dbCall</span> = <span class="ruby-identifier">execute</span>( <span class="ruby-node">"SELECT COUNT(*) AS number_of_rows FROM #{table_name} #{where_clause}"</span> ) <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">dbCall</span>.<span class="ruby-identifier">hashes</span>.<span class="ruby-identifier">first</span>[<span class="ruby-identifier">:number_of_rows</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/M000062.html |