Scaleway's Serverless SQL DB is a fully-managed and flexible service offering SQL Databases. It provides elastic scaling and a pay-per-use model, ensuring you pay only for the queries you run and storage you consume.
Designed to free you from administrative and configuration tasks, it lets you focus solely on your data and application development. We handle high availability, regular backups, and configuration.
Your database only runs when in use, hosted in our energy-efficient datacenters in Europe, reducing your carbon footprint. Data is kept securely within our regions in Paris, Amsterdam, and Warsaw. Serverless SQL DB by Scaleway is a smart choice for efficient and sustainable database management.
Concepts
Refer to our dedicated concepts pageOpen in new context to find definitions of the different terms referring to Serverless SQL DB.
Quickstart
-
Configure your environment variables.
Note
This is an optional step that seeks to simplify your usage of the APIs.
Code -
Edit the POST request payload you will use to create your Serverless SQL DB Database. Replace the parameters in the following example:
CodeParameter Description organization_idYour Organization ID. It must be in UUID format. To find your Organization ID, you can consult the Scaleway consoleOpen in new context. project_idThe ID of the Project you want to create your Serverless SQL DB Database in. To find your Project ID you can list the projects or consult the Scaleway consoleOpen in new context. nameName of the Serverless SQL DB Database cpu_minThe minimum number of CPUs units your Serverless SQL DB Database can scale down to. cpu_maxThe maximum number of CPUs units your Serverless SQL DB Database can scale up to. -
Create a Database by running the following command. Make sure you include the payload you edited in the previous step.
Code -
List your Databases.
CodeYou should get a response like the following:
Note
This is a response example, the UUIDs and IP address displayed are not real.
Code -
Retrieve your Serverless SQL DB endpoint from the response.
Note
In the example above, the Endpoint is .
-
Connect to your Database with the psql database client using the endpoint and one of your IAM principals:
Code
Requirement
To perform the following steps, you must first ensure that:
- you have an account and are logged into the Scaleway consoleOpen in new context
- you have created an API keyOpen in new context and that the API key has sufficient IAM permissionsOpen in new context to perform the actions described on this page.
- you have installed
curlOpen in new context
Technical Information
Regions
Scaleway's infrastructure is spread across different regions and Availability ZonesOpen in new context.
Serverless SQL DB is available in the Paris region, which is represented by the following path parameters:
fr-par
PostgreSQL specifications
Versions
Scaleway Serverless SQL DB supports PostgreSQL version 14.
Technical Limitations
User Management
- users do NOT have
SUPERUSERnorREPLICATIONprivileges.
Going Further
For more information about Serverless SQL DB , you can check out the following pages: