RESOURCE CATALOG
Datastore
Managed database: PostgreSQL, MySQL, MongoDB, or Redis.
type: "datastore"analogous to a managed databaseDefinition
Managed database with automatic backups, monitoring, minor version upgrades, and failover when ha=true. Configuration is limited to engine, version, and size; the platform exposes the connection string to other Project resources.
When to use
- Postgres or MySQL as the primary application database.
- MongoDB for documents with variable schema.
- Redis for cache, queue, or pub/sub.
When not to use
- Analytical data warehouse — not supported for this resource type.
- Dedicated vector database — use Postgres with pgvector.
Configuration fields
Each field is validated at creation time. Defaults apply when fields are omitted.
config · datastore
| Campo | Tipo | Default · Opções |
|---|---|---|
engine Engine | enum | postgresmysqlmongoredisDefault postgres |
versao Versão | string | Default 16 |
tamanho_gb Armazenamento (GB) | int | Default 10 |
ha Alta disponibilidade | bool | Default false |
Examples
Full payloads for POST to /api/projetos/{id}/recursos:
Postgres 16 with 50 GB and HA
json
{
"tipo": "datastore",
"nome": "core-db",
"config": {
"engine": "postgres",
"versao": "16",
"tamanho_gb": 50,
"ha": true
}
}Redis for cache
json
{
"tipo": "datastore",
"nome": "cache",
"config": {
"engine": "redis",
"versao": "7",
"tamanho_gb": 5,
"ha": false
}
}