Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-sqlite-devtools

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-sqlite-devtools

Access SQLite database from Android devices.

  • 1.2.1
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

NPM Version CI Dependency Status Dev Dependency Status

Cordova SQLite Devtools

A quick and easy way to pull a backup of a sqlite database from a connected Android device.

Installation

npm install -g cordova-sqlite-devtools

Usage

cordova-sqlite-devtools uses Android Debug Bridge (adb) to communicate with your Android device. Make sure you have adb installed / configured, and you have connected your mobile phone to your laptop / desktop.

csd --help

List Databases

List all databases on the device.

csd list

Pull Database Backup

With the below command, you should be able to find the database copied into the _sqlite-backups folder of the current directory. Use SQLite browser to open the database and browse the data.

csd pull awesome.db

Where awesome.db is the optional name of the database to backup. Note: the database name is case sensitive. If the database is not provided, you will be prompted to select from a list of available databases on the device.

Delete Database Backups

Remove _sqlite-backups folder and all backups.

csd clean

Generate

Combine all SQL files into a JavaScript file that adds all SQL queries to an object on the window (window._sqlite). The generated file can be included (<script src="build/sqlite.js"></script>) and the queries accessed from code. For example, if your SQL file is named MyAwesomeQuery.sql, then you can access the query via window._sqlite['MyAwesomeQuery'].

csd generate

Options

NameAliasDescriptionDefault
--src-sSource glob of sql files.src/sqlite/**/*.sql
--dest-dDestination JavaScript file.www/build/sqlite.js

Development

For easy development, clone the repo and run the following commands in the cordova-sqlite-devtools directory:

npm install
npm link
npm run build

Keywords

FAQs

Package last updated on 28 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc