Sign Up
Loading...

CSV Import

Twidget enables seamless import of data from a CSV file into your database. Follow the steps below to successfully import a CSV file.

-

Step-by-Step Guide

  1. Initiate the Import:

    • Click on the Import button within the table toolbar.

    • Select Import from CSV from the dropdown.

  1. Open Import Dialog:

    • A new import dialog will appear.

    • Click on the Choose File button and select your CSV file from your local storage.

  1. Preview CSV Data:

    • After selecting your file, you will be able to preview the first 10 rows of your CSV.

    • This provides an opportunity to ensure your data looks correct before importing.

  1. Map CSV Columns to Table Fields:

    • The dialog will automatically map CSV column headings to table fields if there is a match.

    • Any headings that do not match an existing table field need to be manually mapped by selecting the appropriate table field.

    • Headings not mapped or duplicated will be highlighted in red.

Note: You cannot import fields that are of type List or Object.

  1. Create Missing Columns:

    • If your CSV contains columns not present in your database table, ensure to create these columns within your table before importing.
  2. Complete the Import:

    • Once all columns are appropriately mapped, click on the Import CSV button to finalize the import process.

Important Considerations

  • Automatic vs. Manual Mapping: While Twidget automatically maps matching column headings, ensure to review each mapping for accuracy.

  • Field Restrictions: Remember, List and Object fields cannot be imported. All other fields should be correctly mapped.

  • Pre-import Preparation: Verify and create any columns that are not currently existing in your table to make sure data is not lost during the import.

Related Topics

Table Relationships

In Twidget, you can connect database table data using the `_id` field that is automatically generated for every row in a table. This `_id` field is essential for creating and maintaining relationships across different tables. Types of Relationships. A one-to-one relationship occurs when a single row...

Related Records

Include related information in the same result instead of adding a separate lookup for each record in a list. Example: orders with customers. Suppose your Orders table stores a `customerId`, and your Customers table contains the corresponding customer record. 1. Add Get Multiple Data and select Orde...

Save Changes Together

A Database Transaction groups database work so its changes complete together. If a command in the block fails, the block's changes are rolled back. Example: an order and its stock change. 1. Add Database Transaction to the workflow. 2. Inside Save changes together, add the supported commands that cr...

External Database Connections

Read records from an existing external database without copying all of its data into Twidget. Add a connection. 1. Select your workspace and open Settings → Database Connections. 2. Select Add database connection. 3. Choose the provider: PostgreSQL, MySQL, SQL Server or Snowflake. 4. Enter a connect...

Authentication Table

An authentication table is a crucial component in Twidget that is used to store all necessary authentication information, essential for authenticating requests. Overview. - Purpose: To store authentication details such as email, password, token signature, and reset key. - Recommendation: It's recomm...