Sha256: ddc1d49f57bdec2e6a2d2c8941c691ea0ababf506fb3de16d08cfb2bd2c9f436

Contents?: true

Size: 608 Bytes

Versions: 4

Compression:

Stored size: 608 Bytes

Contents

# encoding: utf-8

module QueryBuilder::CQL

  module Statements

    # Describes the 'DELETE' CQL3 statement
    #
    class Delete < Base

      include Modifiers::Delete
      include Modifiers::Where
      include Modifiers::If
      include Modifiers::IfExists
      include Modifiers::UsingOptions

      # Builds the statement
      #
      # @return [String]
      #
      def to_s
        cql[
          "DELETE", maybe_columns, "FROM", context.to_s,
          maybe_using, maybe_where, maybe_if
        ]
      end

    end # class Delete

  end # module Statements

end # module QueryBuilder::CQL

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
query_builder-0.0.4 lib/query_builder/cql/statements/delete.rb
query_builder-0.0.3 lib/query_builder/cql/statements/delete.rb
query_builder-0.0.2 lib/query_builder/cql/statements/delete.rb
query_builder-0.0.1 lib/query_builder/cql/statements/delete.rb