An ORM for SQLite and WebSQL databases, designed for Angular 2+ and Ionic 2+ applications. Version 1.2.1 is the current stable release, with support for Angular 6 and Node >=8.11. The package has undergone major breaking changes from version 0.2.2 to 1.0.0+, replacing the module name from OrmModule to SqliteWebsqlOrmModule, introducing adapters (ADAPTERS.auto, ADAPTERS.sqlite, ADAPTERS.websql) instead of useFakeData, and simplifying schema generation. It ships TypeScript types and has peer dependencies on @angular/common, @angular/core, @ionic-native/core, @ionic-native/sqlite, rxjs, and rxjs-compat. Key differentiator: works across both WebSQL (browser) and SQLite (mobile) with a single API.
npm install sqlite-websql-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to initialize the ORM module, configure the adapter, and generate the schema in an Angular/Ionic app.
Replace OrmModule with SqliteWebsqlOrmModule in imports and @NgModule.
Replace useFakeDatabase: true with adapter: ADAPTERS.auto.
Remove arguments from generateSchema() call; do not import RepositoryStore.
Remove imports of RepositoryStore; use @Repository decorator on services.
Run npm install @angular/common @angular/core @ionic-native/core @ionic-native/sqlite rxjs rxjs-compat --save
Set adapter to ADAPTERS.sqlite if WebSQL not desired.
Use import { SqliteWebsqlOrmModule } from 'sqlite-websql-orm'Replace with adapter: ADAPTERS.auto (or ADAPTERS.sqlite / ADAPTERS.websql)
Call this.schema.generateSchema() without arguments