Skip to main content
Databases provide the structured data layer for RevoEngine applications. The workspace deliberately follows the same five-part model as the product UI: Tables → Audit → Views → Materialized Views → Cache.

Query records

Read bounded results and inspect the query plan.

Write and import records

Use upserts, ordered updates, exports and Storage imports.
For a specific operation, go straight to Preview a read plan or Conditional upserts.

Choose the correct database surface

Start with the record your application owns. An orders Table holds current orders. A View can show current open orders, while a Materialized View can serve yesterday’s completed order totals until it refreshes. Use a restricted Table when only specific users, Groups or Service Accounts should access its rows. Build indexes for a known query and enable audit before the changes you need to investigate.

Build a Table

  1. Open Databases → Tables.
  2. Create a Table with a stable name, description, category, and field definition.
  3. Decide whether access is unrestricted within the resource role boundary or restricted to selected users and groups.
  4. Enable row audit if the application requires evidence for subsequent inserts, updates, and deletes.
  5. Add test rows and verify filters, field types, and authorization.
  6. Read and mutate the Table from a Component, Endpoint, job, or the Platform API.
Table names begin with a letter or underscore and contain letters, numbers, and underscores. Treat names as durable integration identifiers; use the display description and category for operator-facing context.

What the Table panel exposes

From Databases → Tables, select a Table and open Definition. The side panel keeps the data grid in context while exposing the Table name, category, description, metadata, size, Definition, Audit, and Restricted controls. Select a column row to open its own field-definition panel, where the name, type, primary-key setting, default generation, and metadata are visible together. Use Audit for evidence of subsequent inserts, updates, and deletes; switching it on does not backfill older rows. Use Restricted with users or Groups for the resource boundary—do not treat a category or hidden UI field as an access-control rule.

Views

A View is a saved, read-only query surface over accessible Tables. The structured builder covers projections, joins, nested filters, grouping, functions, casts, and stable sorting while retaining source-field lineage. An explicitly enabled Resource Admin can also author a restricted raw SQL SELECT/WITH definition. Use Database Views for the complete builder flow, output-query contract, ACL behavior, governed source actions, limits, failures, and links to every generated Database Views API operation.

Materialized Views

A Materialized View persists query output for expensive aggregation and read-heavy workloads where controlled freshness is acceptable. It requires a unique output key so refresh can run concurrently; optional output indexes support real filter and sort paths. The manual API uses HTTP 202 but completes the database refresh before it returns. Scheduled refreshes are tracked as Automation Jobs, while governed mutation previews over materialized output have their own asynchronous status resource. Materialized Views documents these boundaries, freshness metadata, scheduling, failure behavior, and lifecycle.

Safe actions through a View

When direct field lineage is available, a View can prepare an update or delete against a source Table:
  1. Choose the action and target Table.
  2. Map View keys to target keys.
  3. Preview the exact affected selection.
  4. Wait for a large preview operation if it is processed asynchronously.
  5. Submit the short-lived mutation token returned by preview.
This preview-and-token boundary prevents a mutation from silently applying to a different selection after the operator reviewed it.

Audit

Audit is opt-in per Table and captures inserts, updates, and deletes performed after it is enabled. The Databases → Audit workspace provides a cross-Table grid, while a Table-specific history narrows the evidence to that Table or row. Audit entries expose operation, actor, time, Table identity and version, row key, changed field names, before/after values, the row snapshot, and operationId. List views use a bounded projection; open one audit event to retrieve its complete evidence and follow the correlated Trace.
Enabling audit starts capture from that point forward. It does not reconstruct earlier changes.
Audit access follows the Table’s resource access. Administrative deletion of audit history is a separate, permanent privileged operation. Database Audit documents the exact captured fields, Table and row filters, API projection, truncate boundary, retention, and correlation workflow.

Cache

Databases → Cache exposes the application cache namespace, not the platform’s internal operational state. Operators can:
  • list logical keys;
  • inspect a value and its type;
  • check size and TTL;
  • create or replace a key;
  • set expiration, make a key persistent, or delete it.
Use clear prefixes and finite TTLs. Cache is an acceleration layer: the durable source of truth should remain a Table or an external system. See Database Cache for request-scoped versus instance cache, atomic read-through, idempotency, counters, compare-and-set, TTL semantics, administration bounds, and recovery patterns.

Clone, export, and lifecycle

  • Clone creates a new Table for controlled copies or environment preparation. REST starts a background task; low-code waits by default and supports an explicit asynchronous mode.
  • Export streams selected rows to CSV, TSV, NDJSON, or XLSX and places the result in Storage. REST starts a background task, while low-code waits for the finalized file by default or can request an asynchronous operation. You can choose a private destination, the Storage root, or an accessible folder, and assign retention.
  • Delete is recoverable while the Table remains in its deleted lifecycle state.
  • Restore returns a deleted definition and its retained data when allowed.
  • Truncate removes rows; identity restart is opt-in rather than implicit. Truncate does not create row-level audit events, so use a deliberately confirmed filtered delete when every removed row must remain in audit history.
The generated reference owns the current contracts for Create Database, Update Database, Insert Database data, mass update, mass delete, export, clone, and restore.

Gzip import and export

To export a gzip file, choose CSV, TSV, NDJSON, or Excel and enable Compress as gzip (.gz). The output keeps the selected format inside the archive. Import accepts the same formats with a .gz suffix and uses the existing preview, mapping, and commit flow.

Access model

Resource roles and per-resource ACLs work together: The principal executing a Component or job is evaluated at runtime. Giving a developer access in the UI does not automatically grant the same access to a service account used by automation.

How the data plane works

Table and View definitions live in the control plane, while generated data structures hold application rows. Requests are validated against the stored definition, authorized against current roles and ACLs, and compiled from the structured query contract. Cache and query planning improve performance without replacing durable data truth. Schema-changing operations, clones, exports, scheduled materialized refreshes, and materialized action previews may cross asynchronous execution boundaries. Follow the operation-specific result: an export or Job is tracked separately, an action preview can return a pollable operation, and a successful manual materialized refresh already represents completed work even though its HTTP status is 202.

Instance readiness

Requests can wait for an instance to become ready after startup or reconnection. During a schema migration, the Platform API can return a temporary maintenance response.

Production checklist

  • Use stable Table and field names.
  • Select only the fields a caller needs.
  • Bound page size and bulk mutations.
  • Enable audit before regulated data starts changing.
  • Keep external side effects outside database transactions.
  • Index materialized output according to real filters and sorts.
  • Give automation service accounts explicit access to restricted sources.
  • Treat Cache as disposable and choose TTLs intentionally.
  • Apply retention and ACLs to exported CSV, TSV, NDJSON, and XLSX files.

Definition reference

Select field types, constraints, defaults, references, and audit deliberately.

Database Audit

Trace row-level inserts, updates, and deletes to actors and operations.

Database Views

Build reusable read models and query their governed output.

Materialized Views

Persist expensive results and operate their refresh lifecycle.

Database Cache

Accelerate reads and coordinate short-lived work with TTL-bound application state.

Low-code Database API

Query, mutate, and transact from Components.

Automation

Refresh materialized Views and process data asynchronously.

Storage

Find exported files and apply access and retention policies.

IAM

Combine resource roles with user and group ACLs.

Inspect JSON and metadata

JSON and JSONB columns, metadata and advanced metadata show compact values that fit the column width. The remaining-item count changes when resizing. Click any value or the count to open the complete cell in a JSON popup. Escape or clicking outside dismisses it. Lists request bounded previews before large values are transferred. Selecting a cell loads its full value, including values larger than the preview. If a keyless View changes during that read, refresh the row first. This applies to table data and Views; normal low-code reads with explicit JSON columns and exports still return full values.
Last modified on November 11, 2026