insertica 0.0.4 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/insertica +3 -3
- data/lib/insertica/table.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e5ff501143390371456fc0203b5b7218302e34c
|
4
|
+
data.tar.gz: f71b5778ae76cb3cb5243f07f49f2a1812136f88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 986351fe6810ff69d0926ea1b1bc349dca9dfd6bdb548c397d357c2b75677fa26bf479b892e27b2fef3478ec8154ba9ddec41183cf4edd1ac2a56b56037820ad
|
7
|
+
data.tar.gz: 07fc990b751ca5647d58b0e4ce348d8e796777121e522bd96be2d43047b5c4fea0cb6a262736d6fc8ab13ba225ed0b49b252ec820dbc599c5bcd62fe97a9f5f9
|
data/bin/insertica
CHANGED
@@ -6,12 +6,12 @@ require 'insertica'
|
|
6
6
|
class InserticaExecutable < Thor
|
7
7
|
package_name "insertica"
|
8
8
|
|
9
|
-
desc "load", "Load a delimited file into Vertica."
|
10
|
-
method_option :
|
9
|
+
desc "load FILENAME", "Load a delimited file into Vertica."
|
10
|
+
method_option :user, aliases: "-u", required: true, type: :string, desc: "Specifies the username to use with Vertica."
|
11
11
|
method_option :password, aliases: "-p", required: true, type: :string, desc: "Specifies the password to use with Vertica."
|
12
12
|
method_option :host, aliases: "-h", default: 'localhost', desc: "Specifies the host of the Vertica database."
|
13
13
|
method_option :port, aliases: "-p", default: 5433, desc: "Specifies the port of the Vertica database."
|
14
|
-
method_option :schema, aliases: "-s", desc: "Specifies which schema to use."
|
14
|
+
method_option :schema, aliases: "-s", required: true,desc: "Specifies which schema to use."
|
15
15
|
def load(filename)
|
16
16
|
table = Insertica::Table.new(options[:schema], filename)
|
17
17
|
table.insert(options)
|
data/lib/insertica/table.rb
CHANGED