hocuspocus-extension-postgres
v0.1.1
Published
a generic Hocuspocus persistence driver for postgres
Downloads
12
Readme
hocuspocus-extension-postgres
a generic Hocuspocus persistence driver for postgres
Usage
import { Logger } from '@hocuspocus/extension-logger'
import { Server } from '@hocuspocus/server'
import { Postgres } from 'hocuspocus-extension-postgres'
const port = process.env.PORT ?? 1234
const server = Server.configure({
port,
extensions: [
new Logger(),
new Postgres({
connectionString: 'postgres://postgres@localhost:5432/postgres',
}),
],
})
server.listen()