# getAllDBGranularity {#getalldbgranularity}

## Syntax {#section_af1_2w1_dzb .section}

`getAllDBGranularity()`

## Arguments {#section_vpm_2w1_dzb .section}

None

## Details {#section_rlz_2w1_dzb .section}

This function can only be executed on a data node. It returns the chunk granularity of all databases on the current node.

**Return value**: a dictionary, where

-   key: the database name;

-   value: the chunk granularity \(TABLE or DATABASE\). Refer to parameter *chunkGranularity* of function [database](../d/database.md) for details.


## Examples {#section_bkx_fw1_dzb .section}

``` {#codeblock_cjp_gw1_dzb}
getAllDBGranularity()
// output: /valuedb->TABLE
```

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

