Connecting to QuestDB on Layerbase Cloud

QuestDB exposes a PostgreSQL-compatible SQL endpoint for time-series workloads and ingestion-heavy applications.

Best for: IoT data, market data, metrics, append-heavy event streams, and time-series analytics.

1

Open your database in the dashboard

Go to /cloud, click the database you just created, and the connection panel shows the host, port, username, password, and a ready-to-paste connection string for the engine.

Use the generated SQL connection string from Quick Connect.

2

TLS is required, on by default

Append ?sslmode=require to the connection string.

PostgreSQL-compatible endpoint on port 5432

3

Use any standard client

QuestDB works with the normal client family for that engine. Start with the dashboard snippet, then move the same URL and credentials into your app environment.

If your client has separate direct, pooled, TLS, or HTTP options, prefer the exact variant shown in Quick Connect.

bashQuestDB
psql "postgresql://layerbase:password@your-host.cloud.layerbase.dev:5432/qdb?sslmode=require"

QuestDB notes

  • Use QuestDB SQL features for time-series queries after connecting through PostgreSQL clients.
  • For high-throughput ingestion, prefer the client pattern shown in the dashboard.