module Dag::Client::Storage

Public Instance Methods

buckets() click to toggle source
# File lib/dag/client/storage.rb, line 4
def buckets
  Dag::BucketCollection.new(@api)
end
create_bucket(bucket) click to toggle source
# File lib/dag/client/storage.rb, line 12
def create_bucket(bucket)
  @api.create_bucket(bucket)

  Dag::Bucket.new(@api, bucket)
end
delete_bucket(bucket) click to toggle source
# File lib/dag/client/storage.rb, line 18
def delete_bucket(bucket)
  @api.delete_bucket(bucket)

  nil
end
delete_object(bucket, object) click to toggle source
# File lib/dag/client/storage.rb, line 24
def delete_object(bucket, object)
  @api.delete_object(bucket, object)

  nil
end
import(db_name, table, file_path, options = {}) click to toggle source

options ==

  • label - label

  • jobs - count of executing pararell

# File lib/dag/client/storage.rb, line 34
def import(db_name, table, file_path, options = {})
  @api.import(db_name, table, file_path, options)

  nil
end
objects(bucket) click to toggle source
# File lib/dag/client/storage.rb, line 8
def objects(bucket)
  Dag::ObjectCollection.new(@api, bucket)
end