Sha256: b02b4e130b1fbef053ac3c8aa42e1c259b1fd989314ec36ef161f6eb83730a3a

Contents?: true

Size: 586 Bytes

Versions: 4

Compression:

Stored size: 586 Bytes

Contents

# encoding: utf-8

module QueryBuilder::CQL

  module Statements

    # Describes the 'UPDATE' CQL3 statement
    #
    class Update < Base

      include Modifiers::Update
      include Modifiers::Where
      include Modifiers::If
      include Modifiers::IfExists
      include Modifiers::UsingOptions

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

    end # class Update

  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/update.rb
query_builder-0.0.3 lib/query_builder/cql/statements/update.rb
query_builder-0.0.2 lib/query_builder/cql/statements/update.rb
query_builder-0.0.1 lib/query_builder/cql/statements/update.rb