getodk / central-backend

Node.js based backend for ODK Central
https://docs.getodk.org/central-intro/
Apache License 2.0
50 stars 76 forks source link

Get off of slonik fork #1119

Open lognaturel opened 8 months ago

lognaturel commented 8 months ago

We are currently using a fork of slonik: https://github.com/alxndrsn/slonik/commit/b0299faa6405e474ea84d6c96dffecc98001a6e2

This is because of some stream-related issues.

At least one related patch has been accepted to upstream node-postgres: https://github.com/brianc/node-postgres/pull/2836

History of postgres clients used in Central:

A barrier to upgrading slonik has been several breaking changes since the version we were on. It seems there's likely a more deliberate approach to breaking changes now: https://github.com/gajus/slonik/issues/450#issuecomment-1409464447

There is now a bridge to use slonik on top of postgres.js instead of node-postgres: https://github.com/gajus/postgres-bridge

matthew-white commented 8 months ago

Great to have these notes centralized here! Here are a few from me: