Sha256: 19100f7088c571e334b31e15702f50406a49b37a11d44ce9700c548275a25944

Contents?: true

Size: 519 Bytes

Versions: 4

Compression:

Stored size: 519 Bytes

Contents

# encoding: utf-8

module QueryBuilder::CQL

  module Statements

    # Describes the 'CREATE USER' CQL3 statement
    #
    class CreateUser < Base

      include Modifiers::IfNotExists
      include Modifiers::Superuser
      include Modifiers::Password

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

    end # class CreateUser

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