Datasets are available on Postman Solo, Team, and Enterprise plans. For more information, see the pricing page.
Views use SQL to define how data is retrieved from your dataset. By default, views use SQLite-compatible syntax and functions. If a dataset has only one external data source type, such as MySQL or PostgreSQL, you can also use syntax and functions specific to that data source.
The following examples show common ways to use views with different data sources.
In the following examples, assume you have a dataset with the following data sources:
A local CSV file named users with the following data:
A MySQL database named orders with the following data:
You can create a view that selects all rows and columns.
You can filter rows to return only the data your workflow needs.
You can create new columns using expressions and aliases in your query. This is useful when your tests or mock servers need values derived from existing data.
SQLite example:
MySQL example:
You can combine data from multiple data sources, such as a local CSV file and a MySQL table. This is useful when you want a consolidated view of data that’s stored in different places.