An AngularJS module that wraps client-side SQLite databases (Web SQL) with promises and table creation helpers. Version 0.1.0 (stable, low activity). Provides $SQLite service with methods like createTable, insert, replace, selectAll, selectFirst, execute. Depends on AngularJS and Web SQL (browser only). No TypeScript definitions. Last release Dec 2015; project appears maintenance-only or abandoned.
npm install angular-sqliteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
AngularJS app with SQLite module: configures DB, creates tables from constant, and exposes a factory with async CRUD using promises.
Consider migrating to a library like Dexie.js or sql.js with IndexedDB or WebAssembly.
Use only with AngularJS 1.x projects. For newer Angular, use different SQLite bindings (e.g., with Capacitor, Cordova, or sql.js).
Always use $SQLite.ready(function() { ... }) with function() (not arrow) and access methods via this inside the callback.For new projects, use a maintained library like sql.js (for Web SQL/IndexedDB) or integrate with a modern backend.
Read the source carefully. The third callback receives {rows, count, result}. Most standard Promise usage expects .then(success, error).Use angular.module('myApp', [require('angular-sqlite')]) instead of 'ngSQLite'.Ensure injection name matches exactly: $SQLite (capital S, Q, L).
Use a supported browser (Chrome, Safari, Edge) or serve over HTTP/HTTPS. For unsupported browsers, use a fallback to IndexedDB.