Sha256: 8d87d11d4b173ebd19520f93e5877f74da79d84a486b9892db82f9f592a60a28

Contents?: true

Size: 697 Bytes

Versions: 4

Compression:

Stored size: 697 Bytes

Contents

module Kangaroo
  module Util
    class Proxy::Db < Proxy
      # Check if a database exists
      #
      # @param db_name Name of database to check
      # @return [boolean] true if database exists
      def db_exist db_name
        call! :db_exist, db_name
      end

      # Get a list of available databases
      #
      # @return list of databases
      def list
        call! :list
      end

      # Get a list of available languages
      #
      # @return list of languages
      def list_lang
        call! :list_lang
      end

      # Get running server version
      #
      # @return server version
      def server_version
        call! :server_version
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kangaroo-0.0.3 lib/kangaroo/util/proxy/db.rb
kangaroo-0.0.2 lib/kangaroo/util/proxy/db.rb
kangaroo-0.0.1.pre2 lib/kangaroo/util/proxy/db.rb
kangaroo-0.0.1.pre lib/kangaroo/util/proxy/db.rb