This is experimental code for using Census to sync data to a PostgreSQL destination. Depending on your Postgres version and configuration, it is likely you'll need to fork and modify this sample in order to talk to your database, list tables (objects) and columns (fields) correctly, and implement the correct insertion logic - the sample code only allows "upserts".
You can configure the Postgres connection in the source code, or by setting the
appropriate environmental
variables
read by postgresql-client
.
The easy way
Advanced way
We recommend you follow Netlify's specific instructions for building and deploying typescript-based Netlify functions.