Skip to main content
Some data only exists inside a database: an ERP’s SQL Server, an Oracle instance behind a VPN, a PostgreSQL read replica with no API in front of it. Database sources are served by RWS Connect Live JDBC: one REST call goes in, one SQL query runs against your database at that exact moment, and clean JSON comes back — ready for transformations, filters and loads like any other API source. It shares the RWS Connect Live model: one HTTP call is one query, nothing is stored, calls are read-only, and the same x-api-key authenticates everything RWS Connect does.

When to use

  • The system holds its data in a database but exposes no API
  • You have (or can create) a read-only user or a read replica
  • You need the current state of the data — monitoring, audits, real-time checks
  • The data you need is the result of a SQL query, possibly across several tables
For history, snapshots over time and heavy analytical queries, RWS Connect tables remain the right tool — Live runs your query on demand, under a 20-second timeout.

Supported databases

The engine is detected from the x_jdbc_url prefix:

What you provide

Email connect@rwsintegration.com once to store the credential and enable the key. From then on, every database and every query is configured by you, per integration. The examples use a fictional data warehouse at sql.example.com, database erp_dw. Replace the addresses, query and credential names with your system’s.

The Connection

You only do this once. The same Connection serves every Live JDBC integration — which database and which query to run are chosen later, per integration.
If you already use RWS Connect Live for SOAP, it’s the same key — only the base path differs.

The Extract configuration

Everything about the query travels as query parameters, so it all lives in one place: your integration’s extract configuration, with Method GET and Path /. The x_jdbc_url is a standard JDBC URL with the usual connection properties (encrypt, sslMode and so on). Two rules: it must never carry credentials — a URL with a user or password in it is refused — and driver properties that could make the driver load code or read files are refused as well. The x_sql is your SQL, with {slots} where values change per run:
Each {slot} is sent to the database as a bound parameter — the value is never pasted into the SQL text, so there is no injection surface. A slot stands for exactly one value: it can’t be a column name or an IN list, and it must not be written inside quotes (= {start_date}, never = '{start_date}'). Values travel as text, so add an explicit CAST({slot} AS ...) where your engine doesn’t convert on its own.
The slots are filled by plain query params with the same names — dynamic parameters like {{ today.subtract(30.day).format(YYYY-MM-DD) }} work here like anywhere else. Any query param that doesn’t start with x_ fills the slot of the same name; an x_ parameter the service doesn’t know is refused with a clear 400, so a typo never becomes a silent slot value. Finally, set the Datapoint Path in Response to items.

Pagination

An unpaged call answers up to 5,000 rows; beyond that it fails with result_too_large and you paginate. Three modes are supported — lastId is not: For the cursor mode — the most robust for large results — configure: And add two static query params next to the extract ones:

Unique keys

Every paginated call needs x_unique_keys: 1 to 8 output column names of your query, comma-separated. They become the sort order of the pages, and the cursor resumes strictly after the last row of the previous page.
The key columns must be truly unique over the whole result, together, with no NULLs. The service validates each page, but a duplicate that lands exactly on a page boundary is invisible to it — the next page resumes after the tied rows and silently skips them. Before going live, compare COUNT(*) with COUNT(DISTINCT key columns) on your query.

How paginated queries run

A paginated call wraps your query as a derived table — SELECT * FROM ( your query ) ORDER BY your keys plus the engine’s own limit syntax. Practical consequences:
  • The query must be valid as a derived table on your engine. On SQL Server that means no ORDER BY of its own and no leading WITH; every column must have a unique name (alias computed columns).
  • A trailing ; is removed automatically.
  • Each page re-runs the query. Every call has a query timeout of 20 seconds — a query too slow for one page is too slow for every page, so pagination doesn’t rescue a slow query. Time your query first; if it can’t answer a page in time, RWS Connect tables are the right tool.
  • If a page is too large to answer (page_too_large), lower x_page_size or select fewer columns.

The response

  • Column labels arrive in snake_case (OrderDate → order_date). Prefer the labels exactly as your database returns them? Add x_raw_column_names=true.
  • Two different labels that would land on the same key fail with response_key_collision — alias one of them in the SQL.
  • Every value is a string or null: numbers in plain decimal, booleans as true/false, dates as yyyy-MM-dd, times as HH:mm:ss, timestamps as yyyy-MM-ddTHH:mm:ss (your database’s wall-clock value), binary as base64.
  • next_cursor comes back null on the last page.
From here on it’s a normal integration: transform, filter, enrich and load as usual.

Try it on a real public database

Three worked tutorials run this whole flow against officially public databases with published credentials — the same calls RWS QA runs against the live service, so every row count is reproducible:

PostgreSQL

RNAcentral (EMBL-EBI): 12,000 rows cursor-paged

MySQL

Rfam and Ensembl: counts, paging, timestamps

MariaDB

UCSC Genome Browser — and the sslMode=disable gotcha
Engine notes beyond the tutorials: SQL Server / Azure SQL follows the paginated-query rules above (no own ORDER BY, no leading WITH, uniquely named columns) and has no public playground — use your own instance. A MariaDB-driver server without TLS needs sslMode=disable in the URL, as the MariaDB tutorial shows.

Calling it directly

The same endpoint serves scripts and tests outside the platform. A one-line smoke test:
A GET request line holds about 10 KB, and x_sql travels URL-encoded inside it. A query too long for the URL can travel as a JSON body of the same GET instead — { "x_sql": "..." }, with every other parameter staying in the query string. Platform extracts always send x_sql in the query string, so this is for direct callers only.

When something goes wrong

Live JDBC fails loudly and tells you why. The error.type in the body says what to fix:

Next steps

Guide: RWS Connect Live

The Live model, step by step

SOAP APIs (Live)

The same model for legacy SOAP systems

Dynamic Parameters

Date windows like “the last 30 days”

VPN connectivity

Reach databases that aren’t on the public internet