Data Explorer CRUD Operations

Create, read, update, and delete records in your Supabase database. Learn inline editing, bulk operations, and managing related records through smart forms.

The Data Explorer provides full CRUD (Create, Read, Update, Delete) capabilities through smart forms that adapt to your column types. No SQL required.

What you can do:

  • View records with automatic relationship resolution
  • Create records with type-aware validation
  • Edit inline (single field) or full-page (multiple fields)
  • Delete individual or batch records
  • Manage one-to-many and many-to-many relationships

Viewing Record Details

Click any row in the Data Explorer table to open the record detail view.

Record Details page showing all fields and related data

The detail view shows:

  • All visible columns with their values
  • Related records (foreign key references)
  • One-to-many relationships (e.g., a user's orders)
  • Many-to-many relationships (e.g., a post's tags)
  • Timestamps and metadata

Creating Records

Click the New Record button in the top-right corner of any table view.

Create Record form with smart field types

Smart Form Fields

Supamode generates form fields based on your column types:

Column TypeForm Field
text, varcharText input
text (long)Textarea or rich text editor
integer, numericNumber input with validation
booleanToggle switch
date, timestampDate/time picker
uuid (foreign key)Searchable dropdown with display format
enumSelect dropdown with defined values
json, jsonbJSON editor with syntax highlighting

Validation

Forms validate data before submission:

  • Required fields (non-nullable columns)
  • Type constraints (numbers, dates, etc.)
  • Unique constraints (prevents duplicates)
  • Foreign key constraints (valid references only)

Validation errors appear inline next to the field.

Default Values

If a column has a database default (like now() for timestamps or gen_random_uuid() for IDs), the field is optional and the default applies on insert.

Editing Records

Supamode offers two editing modes depending on your workflow.

Inline Editing

For quick, single-field updates, hover over any field in the detail view and click the pencil icon.

Inline editing with pencil icon on hover

Inline editing:

  • Updates one field at a time
  • Saves immediately on blur or Enter
  • Shows validation errors inline
  • Ideal for quick corrections

Full-Page Editing

For complex updates or multiple fields, click the Edit button to open the full edit form.

Full edit page with all fields

Full-page editing:

  • Shows all editable fields at once
  • Validates all changes before saving
  • Supports rich text and JSON editors
  • Ideal for comprehensive updates

Deleting Records

To delete a record, click the Delete button in the record detail view or use the row action menu.

Confirmation required: Supamode always prompts for confirmation before deleting. This prevents accidental data loss.

Batch Deletion

To delete multiple records at once:

  1. Enable selection mode by clicking the checkbox column header
  2. Select the records to delete
  3. Click Delete Selected in the batch actions bar
Batch actions bar for bulk operations

Managing Relationships

One-to-Many Relationships

When viewing a record that has related records (e.g., a customer with orders), the detail view shows a nested table of related items.

You can:

  • View related records inline
  • Click through to the related record's detail view
  • Create new related records directly
  • Edit the foreign key to reassign relationships

Many-to-Many Relationships

For many-to-many relationships (e.g., posts and tags), Supamode shows a multi-select interface.

You can:

  • Add existing items to the relationship
  • Remove items from the relationship
  • Create new items and link them simultaneously

Reference Fields

Foreign key columns display the referenced record's display format instead of raw UUIDs.

Example: Instead of 550e8400-e29b-41d4-a716-446655440000, you see "John Smith" or "Order #1234".

Click any reference to navigate to that record's detail view.

Audit Trail

All create, update, and delete operations are logged in the audit log. Each log entry includes:

  • Who made the change
  • When it occurred
  • What changed (before and after values)
  • Which record was affected

This provides accountability and the ability to track down issues.

Best Practices

Use Inline Editing for Simple Changes

For correcting typos, updating statuses, or toggling flags, inline editing is faster than opening the full edit form.

Review Before Batch Operations

When deleting multiple records, double-check your selection. Batch deletes cannot be undone without database backups or audit log data.

Configure Display Formats

Set up meaningful display formats for your tables so reference fields show useful information instead of UUIDs.

Limit Editable Fields

For sensitive columns, configure column permissions to prevent accidental edits. Users can view but not modify protected fields.

Frequently Asked Questions

Can I undo a delete operation?
Supamode doesn't have a built-in undo. Deleted records are logged in the audit trail, but restoration requires database-level backup restoration or custom recovery scripts. For critical data, implement soft deletes in your schema.
Why can't I edit certain fields?
Fields are read-only if: the column is configured as non-editable, your role lacks update permission for that column, or the column has a database-level immutability constraint (like auto-generated IDs).
How do I edit JSON fields?
JSON and JSONB columns open in a syntax-highlighted code editor. The editor validates JSON before saving. Invalid JSON cannot be submitted.
Can I import data in bulk?
Supamode focuses on record-by-record management. For bulk imports, use Supabase's CSV import in Studio, pg_restore, or custom scripts. You can then view and edit the imported data in Supamode.
Why do some dropdowns take time to load?
Reference field dropdowns query the related table. For tables with many records, this can take a moment. Supamode caches results and provides search-as-you-type to help find records quickly.