idata 0.1.17 → 0.1.18
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 +4 -4
- data/bin/iexport +2 -2
- data/bin/iload +3 -3
- data/lib/idata/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3e94adfbde8f133b28e77ab626f01732e2bdfe83
|
|
4
|
+
data.tar.gz: 934bb9e274698f0186b626a10cb9e4d673dc4965
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0dfee971bcaff871f67bba736a26154d41bedc4e8b255e3a750134aef37b957de8ee711cac76a51206f846a541e465dee59c05b30a9650cdb907dc412fc7a7a9
|
|
7
|
+
data.tar.gz: b00bae5a527e4150764feb10c0aa3b4f9520959917a6898246a7217591bf477432407ba02f04533197584c69e88b6a90b8e38fdedca8a3fc8baeb334f2fb323e
|
data/bin/iexport
CHANGED
|
@@ -113,7 +113,7 @@ EXAMPLES
|
|
|
113
113
|
-------------------------------------------------------
|
|
114
114
|
|
|
115
115
|
iexport --host=localhost --username=postgres --database=db --table=items \\
|
|
116
|
-
--output=/tmp/data.csv --format=csv --delim
|
|
116
|
+
--output=/tmp/data.csv --format=csv --delim=$"\\t" --linebreak=$'\\r\\n' \\
|
|
117
117
|
--select="id, name AS vendor_name, age" --where="active = 1"
|
|
118
118
|
|
|
119
119
|
eos
|
|
@@ -159,7 +159,7 @@ if $options[:database].nil?
|
|
|
159
159
|
end
|
|
160
160
|
|
|
161
161
|
if $options[:username].nil?
|
|
162
|
-
puts "\nPlease specify PostgreSQL username: -
|
|
162
|
+
puts "\nPlease specify PostgreSQL username: -u\n\n"
|
|
163
163
|
exit
|
|
164
164
|
end
|
|
165
165
|
|
data/bin/iload
CHANGED
|
@@ -21,9 +21,9 @@ CSV_DEFAULT_QUOTE = '"'
|
|
|
21
21
|
|
|
22
22
|
$options = {}
|
|
23
23
|
parser = OptionParser.new("", 24) do |opts|
|
|
24
|
-
opts.banner = "\nProgram: Data Loader\nAuthor:
|
|
24
|
+
opts.banner = "\nProgram: Data Loader\nAuthor: MCKi Team\nDescription: the program takes an input text file and creates a corresponding data table\n\n"
|
|
25
25
|
|
|
26
|
-
opts.on("-i", "--input INPUT", "
|
|
26
|
+
opts.on("-i", "--input INPUT", "Input text file") do |v|
|
|
27
27
|
$options[:input] = v
|
|
28
28
|
end
|
|
29
29
|
|
|
@@ -35,7 +35,7 @@ parser = OptionParser.new("", 24) do |opts|
|
|
|
35
35
|
$options[:delim] = v
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
-
opts.on("--null
|
|
38
|
+
opts.on("--null VALUE", "Value which is considered NULL") do |v|
|
|
39
39
|
$options[:null] = v
|
|
40
40
|
end
|
|
41
41
|
|
data/lib/idata/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: idata
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nghi Pham
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-05-
|
|
11
|
+
date: 2014-05-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|