forklift_etl 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/forklift.jpg +0 -0
- data/lib/forklift/transports/mysql.rb +3 -2
- data/lib/forklift/version.rb +1 -1
- metadata +1 -58
- data/doc/EmailSuffix.html +0 -228
- data/doc/Forklift/Base/Connection.html +0 -590
- data/doc/Forklift/Base/Logger.html +0 -453
- data/doc/Forklift/Base/Mailer/ERBBinding.html +0 -256
- data/doc/Forklift/Base/Mailer.html +0 -399
- data/doc/Forklift/Base/Pid.html +0 -489
- data/doc/Forklift/Base/Utils.html +0 -252
- data/doc/Forklift/Base.html +0 -167
- data/doc/Forklift/Connection/Elasticsearch.html +0 -419
- data/doc/Forklift/Connection/Mysql.html +0 -939
- data/doc/Forklift/Connection.html +0 -164
- data/doc/Forklift/Patterns/Elasticsearch.html +0 -169
- data/doc/Forklift/Patterns/Mysql.html +0 -402
- data/doc/Forklift/Patterns.html +0 -164
- data/doc/Forklift/Plan.html +0 -704
- data/doc/Forklift.html +0 -187
- data/doc/Gemfile.html +0 -132
- data/doc/Object.html +0 -326
- data/doc/Rakefile.html +0 -138
- data/doc/SpecClient.html +0 -291
- data/doc/SpecPlan.html +0 -253
- data/doc/SpecSeeds.html +0 -303
- data/doc/created.rid +0 -35
- data/doc/example/Gemfile.html +0 -129
- data/doc/images/add.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +0 -122
- data/doc/js/darkfish.js +0 -155
- data/doc/js/jquery.js +0 -18
- data/doc/js/navigation.js +0 -142
- data/doc/js/search.js +0 -94
- data/doc/js/search_index.js +0 -1
- data/doc/js/searcher.js +0 -228
- data/doc/rdoc.css +0 -543
- data/doc/table_of_contents.html +0 -309
data/doc/Rakefile.html
DELETED
@@ -1,138 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
-
|
7
|
-
<title>Rakefile - RDoc Documentation</title>
|
8
|
-
|
9
|
-
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
-
|
11
|
-
<script type="text/javascript">
|
12
|
-
var rdoc_rel_prefix = "./";
|
13
|
-
</script>
|
14
|
-
|
15
|
-
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
-
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
-
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
-
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
-
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
-
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
-
|
22
|
-
|
23
|
-
<body class="file">
|
24
|
-
<nav id="metadata">
|
25
|
-
<nav id="home-section" class="section">
|
26
|
-
<h3 class="section-header">
|
27
|
-
<a href="./index.html">Home</a>
|
28
|
-
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
-
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
-
</h3>
|
31
|
-
</nav>
|
32
|
-
|
33
|
-
|
34
|
-
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
-
<form action="#" method="get" accept-charset="utf-8">
|
36
|
-
<h3 class="section-header">
|
37
|
-
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
-
</h3>
|
40
|
-
</form>
|
41
|
-
|
42
|
-
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
-
</nav>
|
44
|
-
|
45
|
-
|
46
|
-
<div id="project-metadata">
|
47
|
-
<nav id="fileindex-section" class="section project-section">
|
48
|
-
<h3 class="section-header">Pages</h3>
|
49
|
-
|
50
|
-
<ul>
|
51
|
-
|
52
|
-
<li class="file"><a href="./Gemfile.html">Gemfile</a>
|
53
|
-
|
54
|
-
<li class="file"><a href="./Rakefile.html">Rakefile</a>
|
55
|
-
|
56
|
-
<li class="file"><a href="./example/Gemfile.html">Gemfile</a>
|
57
|
-
|
58
|
-
<li class="file"><a href="./spec/pid/pidfile.html">pidfile</a>
|
59
|
-
|
60
|
-
</ul>
|
61
|
-
</nav>
|
62
|
-
|
63
|
-
<nav id="classindex-section" class="section project-section">
|
64
|
-
<h3 class="section-header">Class and Module Index</h3>
|
65
|
-
|
66
|
-
<ul class="link-list">
|
67
|
-
|
68
|
-
<li><a href="./Forklift.html">Forklift</a>
|
69
|
-
|
70
|
-
<li><a href="./Forklift/Base.html">Forklift::Base</a>
|
71
|
-
|
72
|
-
<li><a href="./Forklift/Base/Connection.html">Forklift::Base::Connection</a>
|
73
|
-
|
74
|
-
<li><a href="./Forklift/Base/Logger.html">Forklift::Base::Logger</a>
|
75
|
-
|
76
|
-
<li><a href="./Forklift/Base/Mailer.html">Forklift::Base::Mailer</a>
|
77
|
-
|
78
|
-
<li><a href="./Forklift/Base/Mailer/ERBBinding.html">Forklift::Base::Mailer::ERBBinding</a>
|
79
|
-
|
80
|
-
<li><a href="./Forklift/Base/Pid.html">Forklift::Base::Pid</a>
|
81
|
-
|
82
|
-
<li><a href="./Forklift/Base/Utils.html">Forklift::Base::Utils</a>
|
83
|
-
|
84
|
-
<li><a href="./Forklift/Connection.html">Forklift::Connection</a>
|
85
|
-
|
86
|
-
<li><a href="./Forklift/Connection/Elasticsearch.html">Forklift::Connection::Elasticsearch</a>
|
87
|
-
|
88
|
-
<li><a href="./Forklift/Connection/Mysql.html">Forklift::Connection::Mysql</a>
|
89
|
-
|
90
|
-
<li><a href="./Forklift/Patterns.html">Forklift::Patterns</a>
|
91
|
-
|
92
|
-
<li><a href="./Forklift/Patterns/Elasticsearch.html">Forklift::Patterns::Elasticsearch</a>
|
93
|
-
|
94
|
-
<li><a href="./Forklift/Patterns/Mysql.html">Forklift::Patterns::Mysql</a>
|
95
|
-
|
96
|
-
<li><a href="./Forklift/Plan.html">Forklift::Plan</a>
|
97
|
-
|
98
|
-
<li><a href="./EmailSuffix.html">EmailSuffix</a>
|
99
|
-
|
100
|
-
<li><a href="./Object.html">Object</a>
|
101
|
-
|
102
|
-
<li><a href="./SpecClient.html">SpecClient</a>
|
103
|
-
|
104
|
-
<li><a href="./SpecPlan.html">SpecPlan</a>
|
105
|
-
|
106
|
-
<li><a href="./SpecSeeds.html">SpecSeeds</a>
|
107
|
-
|
108
|
-
</ul>
|
109
|
-
</nav>
|
110
|
-
|
111
|
-
</div>
|
112
|
-
</nav>
|
113
|
-
|
114
|
-
<div id="documentation" class="description">
|
115
|
-
|
116
|
-
<p>#!/usr/bin/env rake require ‘rake’ require “bundler/gem_tasks” require
|
117
|
-
‘rspec/core/rake_task’</p>
|
118
|
-
|
119
|
-
<p>RSpec::Core::RakeTask.new(:spec) do |spec|</p>
|
120
|
-
|
121
|
-
<pre>spec.pattern = [
|
122
|
-
'spec _spec.rb',
|
123
|
-
'spec/ *_spec.rb',
|
124
|
-
'spec/*/*/*/*_spec.rb',
|
125
|
-
]</pre>
|
126
|
-
|
127
|
-
<p>end task :default => :spec</p>
|
128
|
-
|
129
|
-
</div>
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
<footer id="validator-badges">
|
134
|
-
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
135
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
|
136
|
-
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
137
|
-
</footer>
|
138
|
-
|
data/doc/SpecClient.html
DELETED
@@ -1,291 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
-
|
7
|
-
<title>class SpecClient - RDoc Documentation</title>
|
8
|
-
|
9
|
-
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
-
|
11
|
-
<script type="text/javascript">
|
12
|
-
var rdoc_rel_prefix = "./";
|
13
|
-
</script>
|
14
|
-
|
15
|
-
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
-
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
-
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
-
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
-
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
-
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
-
|
22
|
-
|
23
|
-
<body id="top" class="class">
|
24
|
-
<nav id="metadata">
|
25
|
-
<nav id="home-section" class="section">
|
26
|
-
<h3 class="section-header">
|
27
|
-
<a href="./index.html">Home</a>
|
28
|
-
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
-
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
-
</h3>
|
31
|
-
</nav>
|
32
|
-
|
33
|
-
|
34
|
-
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
-
<form action="#" method="get" accept-charset="utf-8">
|
36
|
-
<h3 class="section-header">
|
37
|
-
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
-
</h3>
|
40
|
-
</form>
|
41
|
-
|
42
|
-
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
-
</nav>
|
44
|
-
|
45
|
-
|
46
|
-
<div id="file-metadata">
|
47
|
-
<nav id="file-list-section" class="section">
|
48
|
-
<h3 class="section-header">Defined In</h3>
|
49
|
-
<ul>
|
50
|
-
<li>spec/support/spec_client.rb
|
51
|
-
</ul>
|
52
|
-
</nav>
|
53
|
-
|
54
|
-
|
55
|
-
</div>
|
56
|
-
|
57
|
-
<div id="class-metadata">
|
58
|
-
|
59
|
-
<nav id="parent-class-section" class="section">
|
60
|
-
<h3 class="section-header">Parent</h3>
|
61
|
-
|
62
|
-
<p class="link"><a href="Object.html">Object</a>
|
63
|
-
|
64
|
-
</nav>
|
65
|
-
|
66
|
-
|
67
|
-
<!-- Method Quickref -->
|
68
|
-
<nav id="method-list-section" class="section">
|
69
|
-
<h3 class="section-header">Methods</h3>
|
70
|
-
|
71
|
-
<ul class="link-list">
|
72
|
-
|
73
|
-
<li><a href="#method-c-elasticsearch">::elasticsearch</a>
|
74
|
-
|
75
|
-
<li><a href="#method-c-load_config">::load_config</a>
|
76
|
-
|
77
|
-
<li><a href="#method-c-mysql">::mysql</a>
|
78
|
-
|
79
|
-
</ul>
|
80
|
-
</nav>
|
81
|
-
|
82
|
-
</div>
|
83
|
-
|
84
|
-
<div id="project-metadata">
|
85
|
-
<nav id="fileindex-section" class="section project-section">
|
86
|
-
<h3 class="section-header">Pages</h3>
|
87
|
-
|
88
|
-
<ul>
|
89
|
-
|
90
|
-
<li class="file"><a href="./Gemfile.html">Gemfile</a>
|
91
|
-
|
92
|
-
<li class="file"><a href="./Rakefile.html">Rakefile</a>
|
93
|
-
|
94
|
-
<li class="file"><a href="./example/Gemfile.html">Gemfile</a>
|
95
|
-
|
96
|
-
<li class="file"><a href="./spec/pid/pidfile.html">pidfile</a>
|
97
|
-
|
98
|
-
</ul>
|
99
|
-
</nav>
|
100
|
-
|
101
|
-
<nav id="classindex-section" class="section project-section">
|
102
|
-
<h3 class="section-header">Class and Module Index</h3>
|
103
|
-
|
104
|
-
<ul class="link-list">
|
105
|
-
|
106
|
-
<li><a href="./Forklift.html">Forklift</a>
|
107
|
-
|
108
|
-
<li><a href="./Forklift/Base.html">Forklift::Base</a>
|
109
|
-
|
110
|
-
<li><a href="./Forklift/Base/Connection.html">Forklift::Base::Connection</a>
|
111
|
-
|
112
|
-
<li><a href="./Forklift/Base/Logger.html">Forklift::Base::Logger</a>
|
113
|
-
|
114
|
-
<li><a href="./Forklift/Base/Mailer.html">Forklift::Base::Mailer</a>
|
115
|
-
|
116
|
-
<li><a href="./Forklift/Base/Mailer/ERBBinding.html">Forklift::Base::Mailer::ERBBinding</a>
|
117
|
-
|
118
|
-
<li><a href="./Forklift/Base/Pid.html">Forklift::Base::Pid</a>
|
119
|
-
|
120
|
-
<li><a href="./Forklift/Base/Utils.html">Forklift::Base::Utils</a>
|
121
|
-
|
122
|
-
<li><a href="./Forklift/Connection.html">Forklift::Connection</a>
|
123
|
-
|
124
|
-
<li><a href="./Forklift/Connection/Elasticsearch.html">Forklift::Connection::Elasticsearch</a>
|
125
|
-
|
126
|
-
<li><a href="./Forklift/Connection/Mysql.html">Forklift::Connection::Mysql</a>
|
127
|
-
|
128
|
-
<li><a href="./Forklift/Patterns.html">Forklift::Patterns</a>
|
129
|
-
|
130
|
-
<li><a href="./Forklift/Patterns/Elasticsearch.html">Forklift::Patterns::Elasticsearch</a>
|
131
|
-
|
132
|
-
<li><a href="./Forklift/Patterns/Mysql.html">Forklift::Patterns::Mysql</a>
|
133
|
-
|
134
|
-
<li><a href="./Forklift/Plan.html">Forklift::Plan</a>
|
135
|
-
|
136
|
-
<li><a href="./EmailSuffix.html">EmailSuffix</a>
|
137
|
-
|
138
|
-
<li><a href="./Object.html">Object</a>
|
139
|
-
|
140
|
-
<li><a href="./SpecClient.html">SpecClient</a>
|
141
|
-
|
142
|
-
<li><a href="./SpecPlan.html">SpecPlan</a>
|
143
|
-
|
144
|
-
<li><a href="./SpecSeeds.html">SpecSeeds</a>
|
145
|
-
|
146
|
-
</ul>
|
147
|
-
</nav>
|
148
|
-
|
149
|
-
</div>
|
150
|
-
</nav>
|
151
|
-
|
152
|
-
<div id="documentation">
|
153
|
-
<h1 class="class">class SpecClient</h1>
|
154
|
-
|
155
|
-
<div id="description" class="description">
|
156
|
-
|
157
|
-
</div><!-- description -->
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
<!-- Methods -->
|
172
|
-
|
173
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
174
|
-
<h3 class="section-header">Public Class Methods</h3>
|
175
|
-
|
176
|
-
|
177
|
-
<div id="method-c-elasticsearch" class="method-detail ">
|
178
|
-
|
179
|
-
<div class="method-heading">
|
180
|
-
<span class="method-name">elasticsearch</span><span
|
181
|
-
class="method-args">(name)</span>
|
182
|
-
<span class="method-click-advice">click to toggle source</span>
|
183
|
-
</div>
|
184
|
-
|
185
|
-
|
186
|
-
<div class="method-description">
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
<div class="method-source-code" id="elasticsearch-source">
|
193
|
-
<pre><span class="ruby-comment"># File spec/support/spec_client.rb, line 24</span>
|
194
|
-
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">elasticsearch</span>(<span class="ruby-identifier">name</span>)
|
195
|
-
<span class="ruby-identifier">file</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword">__FILE__</span>), <span class="ruby-string">'..'</span>, <span class="ruby-string">'config'</span>, <span class="ruby-string">'connections'</span>, <span class="ruby-string">'elasticsearch'</span>, <span class="ruby-node">"#{name}.yml"</span>)
|
196
|
-
<span class="ruby-identifier">config</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">load_config</span>(<span class="ruby-identifier">file</span>)
|
197
|
-
<span class="ruby-operator">::</span><span class="ruby-constant">Elasticsearch</span><span class="ruby-operator">::</span><span class="ruby-constant">Client</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">config</span>)
|
198
|
-
<span class="ruby-keyword">end</span></pre>
|
199
|
-
</div><!-- elasticsearch-source -->
|
200
|
-
|
201
|
-
</div>
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
</div><!-- elasticsearch-method -->
|
207
|
-
|
208
|
-
|
209
|
-
<div id="method-c-load_config" class="method-detail ">
|
210
|
-
|
211
|
-
<div class="method-heading">
|
212
|
-
<span class="method-name">load_config</span><span
|
213
|
-
class="method-args">(file)</span>
|
214
|
-
<span class="method-click-advice">click to toggle source</span>
|
215
|
-
</div>
|
216
|
-
|
217
|
-
|
218
|
-
<div class="method-description">
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
<div class="method-source-code" id="load_config-source">
|
225
|
-
<pre><span class="ruby-comment"># File spec/support/spec_client.rb, line 6</span>
|
226
|
-
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">load_config</span>(<span class="ruby-identifier">file</span>)
|
227
|
-
<span class="ruby-constant">YAML</span>.<span class="ruby-identifier">load</span>(<span class="ruby-constant">ERB</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">file</span>)).<span class="ruby-identifier">result</span>)
|
228
|
-
<span class="ruby-keyword">end</span></pre>
|
229
|
-
</div><!-- load_config-source -->
|
230
|
-
|
231
|
-
</div>
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
</div><!-- load_config-method -->
|
237
|
-
|
238
|
-
|
239
|
-
<div id="method-c-mysql" class="method-detail ">
|
240
|
-
|
241
|
-
<div class="method-heading">
|
242
|
-
<span class="method-name">mysql</span><span
|
243
|
-
class="method-args">(name)</span>
|
244
|
-
<span class="method-click-advice">click to toggle source</span>
|
245
|
-
</div>
|
246
|
-
|
247
|
-
|
248
|
-
<div class="method-description">
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
<div class="method-source-code" id="mysql-source">
|
255
|
-
<pre><span class="ruby-comment"># File spec/support/spec_client.rb, line 10</span>
|
256
|
-
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">mysql</span>(<span class="ruby-identifier">name</span>)
|
257
|
-
<span class="ruby-identifier">file</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword">__FILE__</span>), <span class="ruby-string">'..'</span>, <span class="ruby-string">'config'</span>, <span class="ruby-string">'connections'</span>, <span class="ruby-string">'mysql'</span>, <span class="ruby-node">"#{name}.yml"</span>)
|
258
|
-
<span class="ruby-identifier">config</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">load_config</span>(<span class="ruby-identifier">file</span>)
|
259
|
-
<span class="ruby-identifier">db</span> = <span class="ruby-identifier">config</span>[<span class="ruby-value">:database</span>]
|
260
|
-
<span class="ruby-identifier">config</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value">:database</span>)
|
261
|
-
<span class="ruby-identifier">connection</span> = <span class="ruby-operator">::</span><span class="ruby-constant">Mysql2</span><span class="ruby-operator">::</span><span class="ruby-constant">Client</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">config</span>)
|
262
|
-
<span class="ruby-keyword">begin</span>
|
263
|
-
<span class="ruby-identifier">connection</span>.<span class="ruby-identifier">query</span>(<span class="ruby-node">"use `#{db}`"</span>)
|
264
|
-
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
265
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-node">"#{e} => will create new databse #{db}"</span>
|
266
|
-
<span class="ruby-keyword">end</span>
|
267
|
-
<span class="ruby-identifier">connection</span>
|
268
|
-
<span class="ruby-keyword">end</span></pre>
|
269
|
-
</div><!-- mysql-source -->
|
270
|
-
|
271
|
-
</div>
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
</div><!-- mysql-method -->
|
277
|
-
|
278
|
-
|
279
|
-
</section><!-- public-class-method-details -->
|
280
|
-
|
281
|
-
</section><!-- 5Buntitled-5D -->
|
282
|
-
|
283
|
-
</div><!-- documentation -->
|
284
|
-
|
285
|
-
|
286
|
-
<footer id="validator-badges">
|
287
|
-
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
288
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
|
289
|
-
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
290
|
-
</footer>
|
291
|
-
|