Get NoSQL Table Metadata

You can get the metadata of a single Catalyst NoSQL table or of all tables in your project as described below.

Get Metadata of Single Table

The metadata of a single table in Catalyst NoSQL can be obtained by referring the table name using the method getTable() as given below. The response will contain details of the table configuration, such as the partition key and sort key, TTL attribute, and more.

The nosql reference used in the code snippets below is the component instance created to perform these operations.

    
copy
# Create a NoSQL instance nosql = app.nosql() #Get table metadata using the table name table_details = nosql.get_table_resources("EmpTable") print(table_details)
Note: If you rename the table, you will need to update the changes in your code.

Get Metadata of All Tables

Catalyst enables you to fetch the metadata of all the tables in your project using the get_all_tables() method as shown below.

    
copy
table_res = nosql.get_all_tables() print(table_res)

Last Updated 2025-06-20 16:21:48 +0530 +0530