@cyguin/changelog-adapter-postgres
v0.1.7
Published
Postgres adapter for @cyguin/changelog
Maintainers
Readme
@cyguin/changelog-adapter-postgres
Postgres storage adapter for @cyguin/changelog.
what it is
Drop-in Postgres backend. Connection-string driven. Migrations run automatically on first boot via CREATE TABLE IF NOT EXISTS.
install
npm install @cyguin/changelog-adapter-postgres postgresuse
import { PostgresAdapter } from '@cyguin/changelog-adapter-postgres'
import { sql } from 'postgres'
const db = sql(DATABASE_URL)
const adapter = new PostgresAdapter({ db })
export { adapter }