0.33.0 • Published 1 month ago

@stately-cloud/schema v0.33.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 month ago

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

  1. Follow our Getting Started guide to install the Stately CLI.
  2. Run stately schema init myschema to create a new schema in the folder myschema.
  3. Develop your schema in TypeScript (.ts) files. These import from @stately-cloud/schema to get types and builder functions.
  4. Run stately schema validate myschema/index.ts to check your schema.
  5. Run stately schema put --schema-id 12345 --message "an update message" myschema/index.ts to upload the schema to your store.
  6. Run stately schema generate --language typescript --schema-id 12345 <output-dir> to generate typed models for your schema.
0.21.0

5 months ago

0.20.0

5 months ago

0.19.0

5 months ago

0.33.0

1 month ago

0.11.0

8 months ago

0.12.0

8 months ago

0.13.0

7 months ago

0.12.1

7 months ago

0.14.0

7 months ago

0.15.0

6 months ago

0.16.0

6 months ago

0.17.0

5 months ago

0.18.0

5 months ago

0.10.0

8 months ago

0.32.0

2 months ago

0.31.0

2 months ago

0.30.0

3 months ago

0.29.0

3 months ago

0.28.0

3 months ago

0.27.0

3 months ago

0.26.0

3 months ago

0.25.0

4 months ago

0.24.0

4 months ago

0.23.0

4 months ago

0.22.1

5 months ago

0.22.0

5 months ago

0.29.1

3 months ago

0.9.0

9 months ago

0.8.0

9 months ago

0.7.0

9 months ago

0.6.0

9 months ago

0.5.1

9 months ago

0.5.0

9 months ago

0.4.1

9 months ago

0.4.0

10 months ago

0.3.0

10 months ago

0.2.0

11 months ago

0.1.3

12 months ago

0.1.0

1 year ago