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
  • Starting the export
  • Selecting the output format
  • Adding and selecting a database connection
  • Selecting the scope of the data to export
  • Completing the export and downloading exported files
Export as PDF

Exporting data from a database

You can export the most recently generated database data to files or to a database.

Note that views are exported as tables. They do not create or replace the views in the target database.

Starting the export

To start an export, in the database header, click Export Data.

Selecting the output format

On the Export Database panel, from the Export As dropdown list, select the format for the exported data:

  • SQL - Exports the data to a .zip file called <database name>.zip. The file contains a SQL file to load the exported data, and a readme file that summarizes the export.

  • CSV - Exports the data to a .zip file called <database name>.zip. The file contains a .csv file for each table and view, and a readme file that summarizes the export.

  • JSONL - Exports the data to a .zip file called <database name>.zip. The file contains a .jsonl file for each table and view, and a readme file that summarizes the export.

  • Push to Database - Uses the data to populate a database that you specify.

Adding and selecting a database connection

When you push the exported data to database, you are prompted for the target database. The database must already exist.

Also note that for Fabricate to connect to your database, you must allowlist access from the following IP addresses:

  • 5.161.104.100

If you previously created a target databases for export, then from the Target Database dropdown list, select the database to use.

To configure a connection to a target database:

  1. From the Target Database dropdown list, select create new target.

  2. On the New Target Database Connection panel:

    1. In the Name field, provide the name of the database.

    2. In the Host field, provide the host where the database is located.

    3. In the Port field, specify the host to use to connect to the database.

    4. In the Username field, provide the username to use to connect to the database.

    5. In the Password field, provide the password to use for authentication.

    6. In the Database field, set the Fabricate database that can populate the target database.

      The field is pre-populated with the current database.

    7. To test the connection, click Test Connection.

    8. To save the target database, click Create Target.

The target database is then available to use whenever you export the database.

Selecting the scope of the data to export

If you are currently viewing a specific table or a view, then on the Export Database panel:

  • To export the entire database, click All Tables.

  • To only export the current table or view, click Only <table or view name>.

Completing the export and downloading exported files

After you configure the export, to complete the export, click Export Database.

When you export to files, after Fabricate generates the file, it prompts you to download the file.

If you do not download the file immediately, it is also available on the downloads list.

To display the list of available downloads, in the Fabricate header, click the download icon.

Last updated 4 days ago

Download prompt for export to a file
Download icon to display the list of available files to download