Datastore
Datastore is a logical grouping of enums, embeddables and entities. Datastore is tied to a database type like Postgres, Clickhouse or Apache Age. A product can have one more datastores, and when a product is deployed into an environment, it is attached to all its datastores. Data API block, creates REST and GraphQL APIs on the fly based on the entities in the Datastore.
Example Datastore
The prefix
attribute is used to prefix all table names or collection names to be prefixed with the value. For example an entity with name task
would have table with name alm_task
.
Default Datastore
Data API can serve multiple datastores with the url pattern /data/rest/:entity
, /data/graphql
etc. By default entities from the default datastore are served. To serve entities from other datastores use the query param datastore
and so the urls will be /data/rest/:entity?datastore='alm-analytics'
, /data/graphql?datastore='alm-analytics'
Supported Databases
kis.ai Data API out of the box supports few databases out of the box, and due to its extensible architecture, support for new databases can be added quickly as needed.
Database | Slug | Description | Versions |
---|---|---|---|
Postgres | postgres | Postgres database for relational workloads. Supports GIS and Vector extensions. | 14,15 and 16 |
Clickhouse | clickhouse | Clickhouse database for Analytical workloads | 23 and 24 |
DuckDB | duckdb | DuckDB in-memory OLAP database | 1.0.0 |
Apache Age | age | Apache Age graph database | 1.5.0 |