0.11.0 • Published 1 year ago

@sphereon/ssi-sdk-data-store v0.11.0

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

Warning: This package still is in very early development. Breaking changes without notice will happen at this point!


SSI-SDK data storage based on TypeORM. This package provides several plugins that relate to data storage.

Available stores

  • Contact Store

Contact Store

A store that exposes simple store/get methods for contacts and identities.

Installation

yarn add @sphereon/ssi-sdk-data-store

Build

yarn build

Module developers

We use TypeORM migrations to support database changes over time. As soon as you need to update, add or delete information from entities, ensure that migration files are being created to reflect the updates.

Currently, we support migrations for sqlite databases, typically used during development and on mobile platforms. Next to that we also support Postgres. Obviously you need to have a Postgresql database at hand when working with Postgres.

Create a migration file

  • Ensure you have an existing sqlite/postgres database at hand with the old situation
  • Make a copy of that database, so you can always easily go back
  • Run the respective commands for postgres and/or sqlite:
    • yarn run typeorm-postgres:migration:generate NameOfYourMigration
    • yarn run typeorm-sqlite:migration:generate NameOfYourMigration
  • Check in the src/migrations folders to find a file in the respective sqlite/postgres folder which contains NameOfYourMigration
  • Update the credential-mapper.ts file in the respective directory to include the migration. Users will import that file as their migrations entrypoint from their TypeORM config.
  • If you wish to check whether applying the migration works you can execute the respective

Applying migrations

There is an example sqlite file in the root called migration.sqlite. We use the sqlite file to keep track of changes we made and to ensure there are no incidental changes by a developer changing an entity,

This file is kept up to date by applying the command: yarn typeorm-sqlite:migration:run The same can be done for a local Postgres database using the command typeorm-postgres:migration:run

You can look at package.json or https://typeorm.io/migrations to apply migrations to your own database(s)

0.10.0

1 year ago

0.10.1-next.6

1 year ago

0.10.1-next.9

1 year ago

0.10.1-next.8

1 year ago

0.10.1-next.2

1 year ago

0.9.1-next.121

1 year ago

0.10.1-next.14

1 year ago

0.10.1-next.13

1 year ago

0.10.2-next.11

1 year ago

0.11.0

1 year ago

0.9.1-next.42

1 year ago

0.9.1-next.109

1 year ago

0.9.1-next.107

1 year ago

0.9.1-next.105

1 year ago

0.9.1-next.103

1 year ago

0.9.1-next.100

1 year ago

0.9.1-next.56

1 year ago

0.9.1-next.55

1 year ago

0.9.1-next.69

1 year ago

0.9.1-next.62

1 year ago

0.9.1-next.17

1 year ago

0.9.1-next.16

1 year ago

0.9.1-next.15

1 year ago

0.9.1-next.13

1 year ago

0.9.1-next.12

1 year ago

0.9.1-next.11

1 year ago

0.9.1-next.10

1 year ago

0.9.1-next.118

1 year ago

0.9.1-next.116

1 year ago

0.9.1-next.114

1 year ago

0.9.1-next.113

1 year ago

0.9.1-next.21

1 year ago

0.9.1-next.120

1 year ago

0.9.1-next.9

1 year ago

0.9.1-next.89

1 year ago

0.8.1-next.272

1 year ago

0.9.1-next.99

1 year ago

0.9.1-next.97

1 year ago

0.9.1-next.96

1 year ago

0.9.0

1 year ago

0.8.1-next.190

1 year ago

0.8.1-next.192

1 year ago

0.8.1-next.194

1 year ago

0.8.1-next.114

1 year ago

0.8.1-next.117

1 year ago

0.8.1-next.119

1 year ago

0.8.1-next.120

1 year ago

0.8.1-next.121

1 year ago

0.8.1-next.122

1 year ago

0.8.1-next.123

1 year ago

0.8.1-next.146

1 year ago

0.8.1-next.154

1 year ago

0.8.1-next.156

1 year ago

0.8.1-next.157

1 year ago

0.8.1-next.158

1 year ago

0.8.1-next.159

1 year ago

0.8.1-next.161

1 year ago

0.8.1-next.162

1 year ago

0.8.1-next.163

1 year ago

0.8.1-next.164

1 year ago

0.8.1-next.165

1 year ago

0.8.1-next.166

1 year ago

0.8.1-next.167

1 year ago

0.8.1-next.168

1 year ago

0.8.1-next.169

1 year ago

0.8.1-next.179

1 year ago

0.8.1-next.26

2 years ago

0.8.1-next.31

2 years ago

0.8.1-next.42

2 years ago

0.8.1-next.50

2 years ago

0.8.1-next.57

2 years ago

0.8.1-next.55

2 years ago

0.8.1-next.66

2 years ago

0.8.1-next.77

2 years ago

0.8.1-next.84

2 years ago

0.8.1-unstable.9

2 years ago

0.8.1-unstable.5

2 years ago

0.8.1-unstable.4

2 years ago

0.7.1-next.66

2 years ago

0.7.1-next.68

2 years ago

0.8.1-next.3

2 years ago

0.8.1-next.6

2 years ago

0.8.1-next.2

2 years ago

0.7.1-next.54

2 years ago

0.8.1-next.12

2 years ago

0.8.1-next.18

2 years ago

0.8.0

2 years ago

0.7.1-next.43

2 years ago

0.7.1-next.40

2 years ago

0.7.1-next.38

2 years ago

0.5.2-next.73

2 years ago

0.6.1-next.6

2 years ago

0.6.1-next.8

2 years ago

0.6.1-next.9

2 years ago

0.7.1-unstable.9

2 years ago

0.7.1-next.39

2 years ago

0.6.1-next.50

2 years ago

0.7.0

2 years ago

0.6.1-next.66

2 years ago

0.6.1-next.67

2 years ago

0.7.1-next.18

2 years ago

0.5.2-next.113

2 years ago

0.6.1-next.76

2 years ago

0.6.1-next.79

2 years ago

0.5.2-next.116

2 years ago

0.6.1-next.78

2 years ago

0.6.0

2 years ago

0.5.2-next.70

2 years ago