Real SQL. One API. No database infrastructure.

Send SQL, JSON, XML, CSV or framework queries over HTTPS. SQLRail handles the relational backend, connections, execution and response formatting.

POST api.sqlrail.com/v1/query gateway ready
APPLICATION INPUT MANAGED ROUTE RELATIONAL DATA
SQLRail request route JSON, SQL, XML, CSV and SDK requests converge into SQLRail, connect to a relational database, and return in the requested format.
Many ways inOne managed pathYour format out

One endpoint. Real relational queries.

Change the input format below. The request travels through the same gateway and the response stays usable by the application that asked for it.

REQUEST WORKBENCH
US-EASTTLS 1.3200 OK  14ms
INPUT FORMAT
CLIENT REQUEST POST /v1/query

            
GATEWAY RESPONSE

            
01 authenticate scope 02 bind parameters 03 execute relational query 04 format response

Use SQL where document queries stop being enough.

Keep the joins, transactions and constraints your application actually needs. SQLRail removes the operating burden—not the relational model.

  • 01Multi-table joinsQuery related data in one operation.
  • 02TransactionsKeep multi-step writes consistent.
  • 03AggregationGroup, filter and calculate at the data layer.
  • 04ConstraintsProtect the integrity of every relationship.
  • 05Window functionsRank, compare and analyze without extra round trips.
orders_by_customer.sqlPARAMETERIZED
SELECT
  c.id,
  c.company_name,
  COUNT(o.id) AS order_count,
  SUM(o.total) AS lifetime_value
FROM customers c
JOIN orders o ON o.customer_id = c.id
WHERE o.created_at >= $1
GROUP BY c.id, c.company_name
HAVING SUM(o.total) > $2
ORDER BY lifetime_value DESC;
12 rows2 tables joined1 HTTPS request

Keep the SQL. Lose the database plumbing.

The old path makes every application team become a database infrastructure team. SQLRail compresses that route into one secure API boundary.

TRADITIONAL ROUTE9 moving parts
YOUR APP
  1. Application backend
  2. Database driver
  3. Credentials + TLS
  4. Network + firewall
  5. Connection pool
  6. Primary + replicas
  7. Backups
  8. Monitoring
  9. Scaling
DATABASE
SQLRAIL ROUTE1 API
YOUR APP
HTTPS
SQLRailMANAGED GATEWAY
RELATIONAL
YOUR DATA

Connections, routing, execution, scaling and response formatting stay behind the gateway.

BRING YOUR STACK
  • Swift
  • Kotlin
  • Flutter
  • React Native
  • Go
  • PHP
  • Python
  • Ruby
HTTPS → SQLRAIL

Raw SQL where it belongs. Scoped access everywhere else.

Mobile and browser credentials should never become database master keys. SQLRail separates trusted server workloads from client-facing application access.

CLIENT MODEmobile · browser
  • Saved and parameterized queries
  • Table, column and operation permissions
  • Row and data access policies
  • Rate and request controls
TRUSTED MODEserver · backend
  • Parameterized raw SQL
  • Scoped database roles
  • Statement policy enforcement
  • Project-isolated credentials
ACCESS POLICYorders.read
role
customer_app
query
orders.by_customer
operations
SELECT
row_scope
customer_id = token.sub
raw_sql
DENIED

Run your first relational query over HTTPS.

Start with the API reference, choose a request format and connect the stack you already use.

$curl -X POST https://api.sqlrail.com/v1/query