@stately-cloud/schema v0.33.0
StatelyDB Schema Language
StatelyDB is a document database built on top of DynamoDB. It uses an elastic schema to allow you to update your data model at any time, with automatic backwards and forwards compatibility.
This is a TypeScript domain-specific language (DSL) for generating StatelyDB Schemas. You use schemas to define the shape of your data model in StatelyDB, including validation, types, and other database configuration such as key paths and indexes. You can also use migrations to change your data model, automatically preserving backwards and forwards compatibility with existing schema versions. It is meant to be used with the stately
CLI, e.g. stately schema put index.ts
.
How it's used
- Follow our Getting Started guide to install the Stately CLI.
- Run
stately schema init myschema
to create a new schema in the foldermyschema
. - Develop your schema in TypeScript (
.ts
) files. These import from@stately-cloud/schema
to get types and builder functions. - Run
stately schema validate myschema/index.ts
to check your schema. - Run
stately schema put --schema-id 12345 --message "an update message" myschema/index.ts
to upload the schema to your store. - Run
stately schema generate --language typescript --schema-id 12345 <output-dir>
to generate typed models for your schema.
5 months ago
5 months ago
5 months ago
1 month ago
8 months ago
8 months ago
7 months ago
7 months ago
7 months ago
6 months ago
6 months ago
5 months ago
5 months ago
8 months ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
3 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
10 months ago
11 months ago
12 months ago
1 year ago