getDFSTablesByDatabase

Syntax

getDFSTablesByDatabase(directory)

Arguments

directory the directory where a DFS database is located.

Details

This functions returns a vector that lists tables under the specified DFS directory.

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 tables on the current node;

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

Examples

$ getDFSTablesByDatabase("dfs://db")
["dfs://db1/dt", "dfs://db1/dt1"]