LogoLogo
Release notesDocs homeFabricateTonic.ai
  • Tonic Fabricate User Guide
  • Fabricate workflow
  • Tutorial videos
  • Fabricate account
    • Getting started with Fabricate
    • Fabricate license plans
    • Managing your Fabricate account and profile
    • Managing users in your account
  • Databases
    • Supported database types
    • Creating and managing databases
  • Backing up and restoring the database definition
  • Configuring database variables
  • Exporting data from a database
  • Tables and columns
    • Managing database tables
      • Configuring table settings
      • Adding a table to a database
      • Removing a table from a database
      • Attaching static data to a table
      • Regenerating table data
  • Managing table columns
    • Adding and removing columns
    • Configuring a column
    • Generator reference
      • Calculated or related values
      • Data type and specific values
      • Names and other identifying information
      • Telephone numbers and email addresses
      • Geographic locations
      • Air travel
      • Natural science
      • Networks and files
      • Banking and finance
      • Dates and times
      • Vehicles
      • Companies and products
      • Healthcare and health insurance
      • Languages
      • Movies
      • Education
  • Views
    • Creating and managing views
    • Views reference
  • Workspaces
    • About workspaces
  • Creating and managing workspaces
  • Database mock API
    • About mock APIs
    • Defining a mock API
    • Creating and querying database snapshots
  • Mock API reference
  • Fabricate API and CLI
    • About the Fabricate API and CLI
    • Managing Fabricate API keys
    • Daily limits on generated data
    • Using the Fabricate API
      • Authentication for the API
      • Data model
      • Managing databases from the API
      • Generating data from the API
    • Using the Fabricate CLI
      • Setting up CLI access
      • Using the CLI to load data
Powered by GitBook
On this page
  • About views
  • Adding a view
  • Configuring a view
  • Defining the view
  • Configuring other view settings
  • Regenerating data for a view
  • Deleting a view
Export as PDF
  1. Views

Creating and managing views

Last updated 1 hour ago

About views

Fabricate views allow you compose virtual tables from data in other tables. They are particularly use for:

  • Denormalization

  • Aggregation

  • Subsetting

  • JSON objects and arrays

When you export a database, views are exported as concrete tables. They do not create or replace the views in the target database.

Adding a view

To add a view to a database:

  1. In the database heading, click Add View.

  2. On the Add View panel, in the name field, provide a name for the view.

  3. Click Create View.

The view is added to the tables list for the database.

The details page for the view is displayed.

Configuring a view

Defining the view

Configuring other view settings

To display the settings panel for the view, in the view heading, click the settings icon.

The view settings contain most of the same options as regular tables, including:

Regenerating data for a view

To regenerate the view data based on the current view definition, in the view heading, click the regenerate icon.

Deleting a view

To delete a view, in the view header, click the delete icon.

To define the view, in the query text area, provide the query to use. The view definition accepts any valid SQLite query.

Constraints - For more information, go to .

Whether to include the view in the export - For more information, go to .

A seed to use for the view - For more information, go to .

SQLite
Configuring constraints for the table
Indicating whether to include the table in the export
Setting a table-wide seed value