Sha256: e434651354c085f5fa73e011193a0719c2164cf24d7e855aa15d9d1eed342a71

Contents?: true

Size: 463 Bytes

Versions: 4

Compression:

Stored size: 463 Bytes

Contents

# encoding: utf-8

module QueryBuilder::CQL

  module Statements

    # Describes the 'CREATE ROLE' CQL3 statement
    #
    class CreateRole < Base

      include Modifiers::IfNotExists
      include Modifiers::With

      # Builds the statement
      #
      # @return [String]
      #
      def to_s
        cql["CREATE ROLE", maybe_if, context.to_s, maybe_with]
      end

    end # class CreateRole

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