API - startPostgresStorageSource
This module is used to save data into a running postgres server. Because all source-of-truth is delegated to Postgres, it will be safe to run several node servers pointing to the same postgres DB. (this is not the case with the FS storage source)
import startPostgresStorageSource from "@aven-cloud/cloud-fs/startPostgresStorageSource";
const source = await startPostgresStorageSource({
config: 'postgresql://postgres:aven-test-password@localhost:5432/postgres',
domains: ['test.aven.io'],
});
The resulting storage source conforms to the source API.
Options
`domains` - what domains are we saving data for
`config` - the postgres connection info, as passed to knex