Ordnary Serverlite
SQL databases over HTTPS. Run statements and batches from anywhere, with rows back as JSON.
Databases
- GET
/databasesThe databases the token can reach. - POST
/databasesCreate a database. - GET
/databases/{database}A database's size, tables and location. - DELETE
/databases/{database}Delete a database and its backups.
Queries
- POST
/databases/{database}/queryRun a statement or a batch, rows as objects. - POST
/databases/{database}/rawThe same, with rows as arrays.
Backups
- GET
/databases/{database}/backupsThe restore points of the last 30 days. - POST
/databases/{database}/restoreRestore the database to a point in time.
Example
Run a query
curl https://serverlite.ordnary.com/v1/databases/production/query \
-H "Authorization: Bearer $OSQ_TOKEN" \
-d '{ "sql": "SELECT * FROM users WHERE id = ?", "params": [1] }' Other APIs
- Ordnary Cloud Ordnary R2 Object storage with an S3-compatible API. Works with the AWS CLI and every S3 SDK.
- Ordnary Cloud Ordnary Halyard Feature flags for your apps. Evaluate flags per user, or fetch the configuration and evaluate locally.
- Ordnary Cloud Console API Your account as an API: projects, access keys and usage, for automation and infrastructure as code.