You can achieve this using
cordova-sqlite-ext
for installation,
cordova plugin add cordova-sqlite-ext --save
Cordova / PhoneGap plugin for opening and using sqlite databases on Android / iOS / Windows with REGEXP (Android / iOS) and pre-populated databases (Android / iOS / Windows)
var db = null; document.addEventListener('deviceready', function() { db = window.sqlitePlugin.openDatabase({name: 'demo.db', location: 'default'}); });
IMPORTANT Like other Cordoba plugins, the application must wait for deviceready events. This is especially difficult in Angular / ngCordova / Ionic controller / factory / service callbacks that can fire before the deviceready event fires.
Here is a detailed example of this.
Ionic Framework application with pre-populated SQLite DB
source share