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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64f8d6e82449cbad8a64adb7c41ac2f974c8e5a2
4
- data.tar.gz: 9591d9a3b2f9ee8ade3350dc8c6fcaef5852927e
3
+ metadata.gz: 9e5ff501143390371456fc0203b5b7218302e34c
4
+ data.tar.gz: f71b5778ae76cb3cb5243f07f49f2a1812136f88
5
5
  SHA512:
6
- metadata.gz: e69aaf2b763b187dd0379a64c7365dd01a110c6fb448cb03c3e9b0d2dd66bd35227452d04ec1d22c1f26cc360d6cac7ad27e67b6c6e772ef00c034debe0cb7f6
7
- data.tar.gz: e3a27aababbe470bbb8c481bc4518645770d70982515c11d8589b1098d3f00b7ebccdb24e0067b56bb7c677fae8e4e6dccfede9d1f87376078abc822294ecde0
6
+ metadata.gz: 986351fe6810ff69d0926ea1b1bc349dca9dfd6bdb548c397d357c2b75677fa26bf479b892e27b2fef3478ec8154ba9ddec41183cf4edd1ac2a56b56037820ad
7
+ data.tar.gz: 07fc990b751ca5647d58b0e4ce348d8e796777121e522bd96be2d43047b5c4fea0cb6a262736d6fc8ab13ba225ed0b49b252ec820dbc599c5bcd62fe97a9f5f9
@@ -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 :username, aliases: "-u", required: true, type: :string, desc: "Specifies the username to use with Vertica."
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)
@@ -32,7 +32,7 @@ module Insertica
32
32
  ].join(",\n")
33
33
  end
34
34
 
35
- def insert(**options)
35
+ def insert(options = {})
36
36
  vertica_connection = Vertica.connect({
37
37
  host: options[:host],
38
38
  user: options[:user],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: insertica
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Evans