Skip to content
Talk to our solutions team

Datastore

A datastore represents a logical grouping of enums, embeddables, and entities. It associates with a database type such as Postgres, Clickhouse, or Apache Age. Multiple datastores per product are supported, and upon deployment to an environment, products connect to all configured datastores. The Data API block automatically generates REST and GraphQL APIs based on datastore entities.

injectdatastore: alm2
defaultdatastore: alm3
datastores:
- name: alm
path: alm
prefix: alm_
database:
name: postgres
min-version: 15
inject: true
injectservices:
- iam
- name: alm-analytics
path: alm-analytics
database:
name: clickhouse
min-version: 22
inject: true

The prefix attribute adds a specified value before all table or collection names (e.g., entity “task” becomes table “alm_task”).

The Data API serves multiple datastores via /data/rest/:entity and /data/graphql endpoints. Default datastore entities are served automatically. Access other datastores using the datastore query parameter: /data/rest/:entity?datastore='alm-analytics'.

DatabaseSlugDescriptionVersions
PostgrespostgresRelational workloads with GIS and Vector extensions14, 15, 16
ClickhouseclickhouseAnalytical workloads23, 24
DuckDBduckdbIn-memory OLAP database1.0.0
Apache AgeageGraph database1.5.0