# getAllDBs {#getalldbs}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`getAllDBs()`

## Arguments {#arguments}

None

## Details {#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 {#examples}

```
getAllDBs();
```

|key|value|
|---|-----|
|/listdb|pt:2:0:pt\_2;|

