SQL database implementation of the OprDatabase interface from opr-core, built on TypeORM for cross-RDBMS compatibility (PostgreSQL, MySQL, SQLite, etc.). Current stable version 0.7.1. Package is part of Google's Open Product Recovery (OPR) ecosystem. Compatible with Node >=12.0.0. Key differentiator: provides a standardized database backend for OPR systems, abstracting SQL dialects via TypeORM. Release cadence is irregular; maintained by Google.
npm install opr-sql-databaseNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize an OPR SQL database with PostgreSQL connection using createOprSqlDatabase, then pass to OprCore.
Install TypeORM 0.2.x: npm install typeorm@0.2
Use migrations instead of synchronize.
Import 'reflect-metadata' at the entry point of your application.
Upgrade Node to >=12.0.0.
Set type in options (e.g., 'postgres', 'mysql', 'sqlite').
Run npm install typeorm@0.2 reflect-metadata
Add import 'reflect-metadata' at the top of your entry file.
Provide a valid type string in OprDatabaseOptions.
Run npm install opr-core