Twidget offers a comprehensive database solution for all workspaces. Here's an overview of how databases are structured and managed within Twidget:
-
Tables: A database may contain multiple tables. Each table stores data in a structured format.
Fields: Tables consist of fields that you can add or remove according to your needs.
Data Types: Each field has a datatype that dictates the type of data it can store. The available datatypes are:
Text
Number
Boolean
Date
Object
List Data: Fields can also hold lists of data if specified.
Rows: Data is stored in rows within a table. Each row represents an individual data entry.
Manual Editing: You can manually edit the data via the web application or through no code commands provided by Twidget.
Deletion: Be cautious when deleting data as deletion actions are irreversible. Once data is deleted, it cannot be restored.
Database Change Triggers
Run an event automatically when a record is created, updated or deleted in a Twidget table. For example, send a welcome message after adding a customer, or refresh a summary when an order changes. Prepare the event. Create an event containing the steps you want to run. Add an Object input named `tri...
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...
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...
Database Storage
Managing your database storage effectively is crucial for ensuring optimal performance and cost-efficiency when using Twidget. Each entry within your database table utilizes a certain amount of storage space. Twidget provides intuitive tools to help you monitor and manage this storage. Viewing Datab...
Database Indexes
Indexes help Twidget find records quickly. A unique index also prevents duplicate values from being saved. Choose the right index. Use a lookup index for a field you regularly filter or sort, such as an order date. Use a unique index when a value must not appear twice, such as a membership number. A...