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
  • Creating a table based on a script, description, or sample data
  • Cloning a table
  • Creating a table from imported data
Export as PDF
  1. Tables and columns
  2. Managing database tables

Adding a table to a database

To add a table to a database, you can:

  • Create a new table based on a description, sample data, or a script

  • Clone an existing table

  • Import data from a .csv file

Creating a table based on a script, description, or sample data

To create a table based on a description, sample data, or a script:

  1. Click Add Table(s).

  2. On the Add Table(s) panel, in the Name field, provide a name for the table.

  3. To import the structure from a script, in the SQL DDL Script field, paste the script.

  4. To display additional options to provide a description and example data, click More Options. Under More Options:

    1. To provide a description, use the Table definition description field. For example, "A list of customers with names, mailing addresses, and telephone numbers." Fabricate uses the description to derive the table columns.

    2. To provide example data, in the Example Data field, paste the data. The example data can use either CSV or JSON format. Fabricate uses the example data to derive the table column.s

  5. Click Add Table.

Cloning a table

You can also create a clone of an existing table. The clone is created with the same columns and data as the original table. You can then adjust the table configuration.

To add a table that is a clone of an existing table:

  1. Display the table that you want to clone.

  2. Click Clone Table.

  3. On the clone panel, in the New Table Name field, provide the name for the new table. By default, the table name is <table_name>_COPY. For example, if you clone the users table, the default name is users_COPY.

  4. Click Clone Table.

Creating a table from imported data

You can create a table from an imported CSV file. Fabricate uses the file to determine the table columns and data types.

To add a table based on an imported CSV file:

  1. In the database header, click Import Data.

  2. In the Name field, provide the name of the table.

  3. To search for and select a file, click Choose File.

  4. Click Import Table.

Last updated 4 hours ago