Sha256: 03a3a6d21a51ea3b6a02b317a1d527cc382c2263ae9405039f96739d8ea80b73

Contents?: true

Size: 355 Bytes

Versions: 9

Compression:

Stored size: 355 Bytes

Contents

module Cassanity
  module ArgumentGenerators
    class ColumnFamilyDrop

      # Internal
      def call(args = {})
        name = args.fetch(:column_family_name)

        if (keyspace_name = args[:keyspace_name])
          name = "#{keyspace_name}.#{name}"
        end

        cql = "DROP COLUMNFAMILY #{name}"
        [cql]
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cassanity-0.6.0 lib/cassanity/argument_generators/column_family_drop.rb
cassanity-0.6.0.beta5 lib/cassanity/argument_generators/column_family_drop.rb
cassanity-0.6.0.beta4 lib/cassanity/argument_generators/column_family_drop.rb
cassanity-0.6.0.beta3 lib/cassanity/argument_generators/column_family_drop.rb
cassanity-0.6.0.beta2 lib/cassanity/argument_generators/column_family_drop.rb
cassanity-0.6.0.beta1 lib/cassanity/argument_generators/column_family_drop.rb
cassanity-0.5.1 lib/cassanity/argument_generators/column_family_drop.rb
cassanity-0.5.0 lib/cassanity/argument_generators/column_family_drop.rb
cassanity-0.4.0 lib/cassanity/argument_generators/column_family_drop.rb