Sha256: d0c3539e61931c51fe52bda298911c743b475c591af0c54f6eb21fa5f3c4beea
Contents?: true
Size: 671 Bytes
Versions: 1
Compression:
Stored size: 671 Bytes
Contents
module Dag module CLI class Import def initialize(client, db, table, files, format, params) @client = client @db = db @table = table @files = files @params = params @format = format end def execute begin @client.database(@db) rescue Dag::Client::DatabaseNotFound @client.create_database(@db) end begin @client.database(@db).table(@table) rescue Dag::Client::TableNotFound @client.create_table(@db, @table, format: @format) end @client.import(@db, @table, @files, @params) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iij-dag-1.0.1 | lib/dag/cli/command/import.rb |