-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8bb74b
commit f023533
Showing
37 changed files
with
1,756 additions
and
876 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | ||
<html lang='en'> | ||
<head> | ||
<title>Sequel::DatasetRun</title> | ||
<meta name='viewport' content='width=device-width, initial-scale=1'> | ||
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'> | ||
<link href='../../css/style.css' media='screen' rel='stylesheet' type='text/css'> | ||
<script type='text/javascript'> | ||
function popupCode(url) { | ||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") | ||
} | ||
|
||
function toggleCode(id) { | ||
var code = document.getElementById(id) | ||
|
||
code.style.display = code.style.display != 'block' ? 'block' : 'none' | ||
return true | ||
} | ||
|
||
// Make codeblocks hidden by default | ||
document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>') | ||
</script> | ||
</head> | ||
<body class='page'> | ||
<div class='class' id='wrapper'> | ||
<div class='header'> | ||
<h1 class='name'><span class='type'>module</span> | ||
Sequel::DatasetRun | ||
</h1> | ||
<ol class='paths'> | ||
<li> | ||
<a href="../../files/lib/sequel/extensions/dataset_run_rb.html">lib/sequel/extensions/dataset_run.rb</a> | ||
</li> | ||
</ol> | ||
</div> | ||
<div id='content'> | ||
<div id='text'> | ||
<div id='description'></div> | ||
<div id='method-list'> | ||
<h2>Methods</h2> | ||
<h3>Public Instance</h3> | ||
<ol> | ||
<li><a href="#method-i-run">run</a></li> | ||
</ol> | ||
</div> | ||
<div id='context'> | ||
</div> | ||
<div id='section'> | ||
<div id='methods'> | ||
<h2>Public Instance methods</h2> | ||
<div class='method public-instance' id='method-method-i-run'> | ||
<a name='method-i-run'></a> | ||
<div class='synopsis'> | ||
<span class='name'>run</span><span class='arguments'>()</span> | ||
|
||
</div> | ||
<div class='description'> | ||
|
||
<p>Run the dataset’s <a href="SQL.html"><code>SQL</code></a> on the database. Returns NULL. This is useful when you want to run <a href="SQL.html"><code>SQL</code></a> without returning a result.</p> | ||
|
||
<pre class="ruby"><span class="ruby-constant">DB</span>[<span class="ruby-string">"GRANT SELECT ON ? TO ?"</span>, <span class="ruby-value">:table</span>, <span class="ruby-value">:user</span>].<span class="ruby-identifier">run</span> | ||
<span class="ruby-comment"># GRANT SELECT ON "table" TO "user"</span> | ||
</pre> | ||
|
||
</div> | ||
<div class='source'> | ||
<a class='source-toggle' href='#' onclick='toggleCode('method-i-run-source'); return false'> | ||
[show source] | ||
</a> | ||
<pre id='method-i-run-source'> <span class="ruby-comment"># File lib/sequel/extensions/dataset_run.rb</span> | ||
<span class="line-num">31</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">run</span> | ||
<span class="line-num">32</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">server</span> = <span class="ruby-ivar">@opts</span>[<span class="ruby-value">:server</span>] | ||
<span class="line-num">33</span> <span class="ruby-identifier">db</span>.<span class="ruby-identifier">run</span>(<span class="ruby-identifier">sql</span>, <span class="ruby-value">:server</span><span class="ruby-operator">=></span><span class="ruby-identifier">server</span>) | ||
<span class="line-num">34</span> <span class="ruby-keyword">else</span> | ||
<span class="line-num">35</span> <span class="ruby-identifier">db</span>.<span class="ruby-identifier">run</span>(<span class="ruby-identifier">sql</span>) | ||
<span class="line-num">36</span> <span class="ruby-keyword">end</span> | ||
<span class="line-num">37</span> <span class="ruby-keyword">end</span></pre> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
<div id='footer-push'></div> | ||
</div> | ||
<div id='footer'> | ||
<a href="https://github.com/jeremyevans/hanna"><strong>Hanna</strong> RDoc template</a> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.