Extend PostgreSQL implementation and unit tests on MongoDB storage

This commit is contained in:
2023-05-02 00:34:33 +02:00
parent 1bf02aa132
commit c6ba00b74f
18 changed files with 870 additions and 752 deletions

View File

@@ -130,8 +130,17 @@ The OIDC provider needs [Etcd v3](https://etcd.io/) (see below for storage consi
COOPGO Mobility Accounts supports the following databases for storage :
- [x] MongoDB
- [x] PostgreSQL
Feel free to contribute any other storage option.
#### SQL schema
SQL schema for PostgreSQL is available from file `storage/postgresql/schema.hcl` in the [atlasgo Data Definition Language](https://atlasgo.io/getting-started) format
To set your development DB with this schema easily, you can simply use atlasgo CLI :
```
atlas schema apply --url "postgresql://username:password@localhost:5432/coopgo_platform?sslmode=disable"
```
### OpenID Connect provider