def create_database(options) #:nodoc:
      options_pattern = {
        :database => :mandatory, :storage => :memory, :type => :document,
        :user => :optional, :password => :optional
      }
      verify_and_sanitize_options(options, options_pattern)
      verify_options(options.select {|k,v| k === :storage or k === :type}, {:storage => [:memory, :plocal], :type => [:document, :graph]})

      params = { :method => :post, :uri => "database/#{options[:database]}/#{options[:storage].to_s}/#{options[:type].to_s}" }
      params[:no_session] = true # out of existing session which represents an already done authentication

      # additional authentication allowed, overriden in 'call_server' if not defined
      params[:user] = options[:user] if options.include? :user
      params[:password] = options[:password] if options.include? :password

      response = call_server params
      process_response(response)
    end
def create_database(options) #:nodoc:
      options_pattern = {
        :database => :mandatory, :storage => :memory, :type => :document,
        :user => :optional, :password => :optional
      }
      verify_and_sanitize_options(options, options_pattern)
      verify_options(options.select {|k,v| k === :storage or k === :type}, {:storage => [:memory, :plocal], :type => [:document, :graph]})

      params = { :method => :post, :uri => "database/#{options[:database]}/#{options[:storage].to_s}/#{options[:type].to_s}" }
      params[:no_session] = true # out of existing session which represents an already done authentication

      # additional authentication allowed, overriden in 'call_server' if not defined
      params[:user] = options[:user] if options.include? :user
      params[:password] = options[:password] if options.include? :password

      response = call_server params
      process_response(response)
    end
----------------------------------------------------------------- DATABASE