Registry / database / cordova-sqlite-storage-dependencies

cordova-sqlite-storage-dependencies

JSON →
library5.0.0jsnpmunverified

Provides pre-built native SQLite binaries and JavaScript libraries required by cordova-sqlite-storage. Contains SQLite 3.40.0 amalgamation for iOS/macOS/Windows, SQLite 3.22.3 compiled to asm.js for browser, and Android NDK libraries (min API 24) with specific compile flags (THREADSAFE, FTS3/4, RTREE, page size 4096). Used internally by cordova-sqlite-storage plugin. Active maintenance, version 5.0.0.

npm install cordova-sqlite-storage-dependencies
INSTALL
IMPORT
SIG · CORDOVA-SQLITE-STO
C
cordova-sqlite-storage-dependencies
databasejavascriptv5.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cordova plugin add
cordova plugin add cordova-sqlite-storage
cordova plugin add cordova-sqlite-storage-dependencies
This package is an internal dependency; end-users never import it directly. They add the cordova-sqlite-storage plugin which pulls in this package.
require('cordova-sqlite-storage-dependencies')
No direct import; used internally by cordova-sqlite-storage.
require('cordova-sqlite-storage-dependencies')
This package is not meant to be imported in application code. It provides build artifacts only.
sql-asm-memory-growth.js
Included automatically for browser platform; not manually imported.
const sql = require('cordova-sqlite-storage-dependencies/sql-asm-memory-growth.js')
This file is bundled by the plugin for browser platform. Do not try to require it directly.

Shows that this package is internal and how to actually use cordova-sqlite-storage.

// This package is not meant to be used directly. // It is a dependency of cordova-sqlite-storage. // To install the sqlite plugin in a Cordova project: // $ cordova plugin add cordova-sqlite-storage // Then use the SQLite API in your JavaScript: // var db = window.sqlitePlugin.openDatabase({name: 'my.db', location: 'default'}); // db.executeSql('SELECT 1', [], function (res) { console.log(res); });
Debug
Known issues
gotchaPackage is not for direct use; only a build dependency of cordova-sqlite-storage.
fix
Do not add this package manually. Use cordova plugin add cordova-sqlite-storage instead.
affects: all
breakingAndroid minimum API level 24 required (Android 7.0). Older devices not supported.
fix
Ensure your Android project minSdkVersion is at least 24, or upgrade to a newer version of the plugin if available.
affects: >=4.0.0
deprecatedSQLite OMIT_DECLTYPE flag set; changes behavior of some queries.
fix
Be aware that resultSet.rows.item(i) may not return column type metadata. Use explicit column names if needed.
affects: >=4.0.0
gotchaBrowser platform uses SQLite 3.22.3 via asm.js; may have known SQLite bugs.
fix
Test your SQL queries thoroughly in browser platform. Consider using a newer version of the plugin if available.
affects: >=4.0.0
gotchaSQLite compile flags are non-standard; some features like LOAD_EXTENSION and SHARED_CACHE are disabled.
fix
Do not rely on disabled SQLite features. Use only supported SQL syntax and functionality.
affects: >=4.0.0
Errors
Common errors & fixes
Error: Cannot find module 'cordova-sqlite-storage-dependencies'
Trying to import this package directly.
fix
Instead, add the cordova-sqlite-storage plugin: cordova plugin add cordova-sqlite-storage
uncaught exception: java.lang.RuntimeException: SQLite 3.40.0 not supported on this device
Device Android API level < 24.
fix
Update your android:minSdkVersion to 24 or later, or use a different SQLite plugin that supports older devices.
Upgrade
Version history
5.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
OpenAI (training)
2
Resources
cordova-sqlite-storage-dependencies — npm install cordova-sqlite-storage-dependencies · libregistry