Closed u-ways closed 4 years ago
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:
manyuanrong/deno_mongo
deno-postgres/deno-postgres
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.
node-postgres
(our Node.JS alternative)@U-ways & @brett-taylor
Changes:
database.config.ts
Looks good.
Development of Database support, mapping and migration.
Currently, no final decision has been made to whether we should use an SQL or NoSQL Database.