Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt

Use this file to discover all available pages before exploring further.

Use this page to confirm that Reporter can reach a Data Source and load its schema. The Data Source can be an internal connection already configured for a Lerian product or an external database connection added from the Console.

Objective


Validate connectivity before operators rely on the Data Source in Templates or Reports. For example, test after creating production-postgres, after a password rotation, or before generating a monthly report that depends on a recently changed schema.

When to use


Use this task:
  • immediately after adding an external Data Source;
  • when checking an existing internal Data Source before using it in a Template or filter;
  • after editing host, credentials, schema, or SSL settings;
  • before generating Reports that depend on the connection;
  • when no tables appear in the schema browser;
  • when Report generation fails because of connection or schema errors.

Before you start


Confirm:
  • the Data Source exists on the Data Sources page;
  • the expected host, port, database name, username, schema, and SSL settings are configured;
  • the database should be reachable from Reporter;
  • the database user has permission to read the required tables.
A successful test confirms access at that moment. It does not guarantee future Reports will succeed if credentials, network rules, or database permissions change later.

Step by step


1

Open Data Sources

Go to Data Sources.
2

Find the connection

Locate the card for the Data Source you need to test.
3

Run the test

Click Test Connection.
4

Wait for the result

The status changes to Connecting while Reporter tests the connection.
5

Read the result

If the test succeeds, the status changes to Connected and latency is displayed, such as Latency: 45ms. If it fails, the status changes to Disconnected and an error message appears.
6

Check schema when connected

Expand the connection card to view the schemas, tables, and fields returned for the connection.

Field guide


Test action and result fields

Field or statusWhat it meansExample
Test ConnectionAction on the Data Source card. The Console uses the selected connectionId to call the test endpoint.Test production-postgres.
ConnectingLocal status while the test request is pending. Wait for the final result before editing or generating a Report.Connecting
ConnectedSuccessful result. Reporter returned connected or success, and the Data Source is usable at that moment.Connected with Latency: 45ms.
DisconnectedFailed result or request error. Check host, port, credentials, network access, schema, and SSL settings.Disconnected after authentication failed.
LatencylatencyMs, returned in milliseconds after a successful test. It is a signal, not a guarantee of future Report generation speed.45
Test messagemessage returned by Reporter, usually most useful on failure. Use it as the first clue for what to fix.authentication failed

Schema fields shown after testing

Schema itemWhat it showsExample
Tablestables[].name returned by schema validation. These are the tables operators can use in Template Builder and report filters.transactions
Fieldstables[].fields[] inside each table. These fields can be inserted as Template variables or used as Report filters.amount, created_at
No schema loadedEmpty tables array or schema load error. The connection may work, but table permissions or schema names still need correction.No tables discovered.

Expected result


The Data Source status is Connected, schema information is available, and operators can safely use its fields in Template Builder and report filters.

Common errors and care points


Check schema names and database permissions. The database user may connect but not have access to the tables needed for reporting.
Reopen the Data Source and confirm username, password, host, port, and SSL settings.
Network rules, rotated passwords, and database permissions can change. Re-test when generation errors appear.

Next steps


Test connection

Test a Data Source connection programmatically.

Validate schema

Validate schema access for tables and fields.