Class: Kangaroo::Util::Proxy::Db

Inherits:
Kangaroo::Util::Proxy show all
Defined in:
lib/kangaroo/util/proxy/db.rb

Instance Method Summary collapse

Methods inherited from Kangaroo::Util::Proxy

#__initialize__, #call!, new

Instance Method Details

#db_exist(db_name) ⇒ boolean

Check if a database exists

Parameters:

  • db_name

    Name of database to check

Returns:

  • (boolean)

    true if database exists



8
9
10
# File 'lib/kangaroo/util/proxy/db.rb', line 8

def db_exist db_name
  call! :db_exist, db_name
end

#listObject

Get a list of available databases

Returns:

  • list of databases



15
16
17
# File 'lib/kangaroo/util/proxy/db.rb', line 15

def list
  call! :list
end

#list_langObject

Get a list of available languages

Returns:

  • list of languages



22
23
24
# File 'lib/kangaroo/util/proxy/db.rb', line 22

def list_lang
  call! :list_lang
end

#server_versionObject

Get running server version

Returns:

  • server version



29
30
31
# File 'lib/kangaroo/util/proxy/db.rb', line 29

def server_version
  call! :server_version
end