> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xano.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Database Schema

You can use the Get Database Schema function to retrieve all of the schema in JSON format for a particular table.

![](https://mintcdn.com/xano-997cb9ee/RVHCrB1RJjFkWEmQ/images/18686235-image.jpeg?fit=max\&auto=format\&n=RVHCrB1RJjFkWEmQ\&q=85\&s=ad0844cdabac5d411659c431eecdd003)

You can use the Path option to only get a specific field from the database if you don't need the entire table delivered.

This function is great for scenarios where you need your APIs to react based on a table's schema, or you need to provide option lists (an enum field) to a front-end connection.


## Related topics

- [Database Operations](https://docs.xano.com/xanoscript/function-reference/database-operations.md)
- [Retrieve the complete schema definition for a database table](https://docs.xano.com/api-reference/table-schema/retrieve-the-complete-schema-definition-for-a-database-table.md)
- [Replace the entire schema definition for a database table](https://docs.xano.com/api-reference/table-schema/replace-the-entire-schema-definition-for-a-database-table.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.