PlaybackDB provides PostgreSQL database schemas and utilities for the Playback health platform. Version 1.4.27 is the latest stable release. It includes schema definitions, migration tooling, and type-safe query builders. Unlike generic ORMs, it is tightly coupled to Playback's domain model and internal conventions. The package is released on an ad-hoc cadence alongside Playback application updates. Key differentiators include built-in support for Playback's multi-tenant architecture and automatic audit logging. It requires Node.js 14+ and pg (node-postgres) as a peer dependency.
npm install playbackdbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to a PostgreSQL database using pg Pool and installs the latest Playback schema via installSchema.
Replace new Client() with new Pool() and pass the pool instance.
Replace getMigrationPath with getMigrationDir; it returns a directory path.
Use a separate staging environment to test migrations first.
Refactor any .then() chains to async/await.
Use new Pool() and pass the pool object to installSchema.
Ensure the node_modules/playbackdb/migrations directory exists and contains valid SQL files.
Run 'npm install playbackdb' and verify the import path.