u-ways / choppa

Team rotation tool based on The Spotify Model.
https://www.choppa.app/
Other
3 stars 1 forks source link

Database Access And Migration #75

Closed u-ways closed 4 years ago

u-ways commented 4 years ago

Development of Database support, mapping and migration.

Currently, no final decision has been made to whether we should use an SQL or NoSQL Database.

u-ways commented 4 years ago

Research

List of possible databases to use with Deno:

Deno does not have an official driver for either. So we found community-developed drivers for each:

deno_mongo findings:

Unfortunately, the deno_mongo driver is a port of MongoDB Rust Driver: https://crates.io/crates/mongodb As such you will need to use the --unstable flag in Deno to --allow-plugins (i.e. Rust code). This caused other dependencies breaking because unstable features were enabled and thus causing conflicts with exiting code.

deno-postgres findings:

The chosen PostgreSQL driver for Deno is based on node-postgres and pq; Two popular and stable Postgres libraries. It has a great community and under constant development and maintenance. PostgreSQL also supports json_columns and has a row_to_json() function which will suffice for our needs for GraphQL based API that serves JSON.

Risk assessment:

u-ways commented 4 years ago

@U-ways & @brett-taylor

Changes:

adamJUK commented 4 years ago

Looks good.