getAllDBs

Syntax

getAllDBs()

Arguments

None

Details

The function returns a dictionary containing the information of DFS databases on the current node. The keys are the database names and the values are the table names, and the following numbers indicates the number of the table in this database (starting from 1), whether it has been deleted (1 means it has been deleted).

From version 1.30.21/2.00.9 onwards,

  • For an administrator or a non-admin user granted with DB_MANAGE privilege, the function returns all DFS databases on the current node;

  • Otherwise, the function returns DFS databases to which the user is granted with the DB_OWNER privilege.

Examples

$ getAllDBs();

key

value

/listdb

pt:2:0:pt_2;