How import sqlite database in nativescript/angular android?

nativescriptrocks
android

#1

I’m trying to import the whole sqlite database intoapplication with a button click for a project (Import feature). I googled for the same, but seems negative response. I’m using https://github.com/NathanaelA/nativescript-sqlite plugin for this. Right now, I’m trying to reach it using java code with nativescript. Any nativescript way help will be appreciated. Thanks in advance.


#2

Did you try copyDatabase?


#3

I mean a clean import. Only schema will be there, we will try importing the back up data. Thanks for reply @manojdcoder


#4

I think in that case you might want to write Java code or purchase the commercial version of plugin.


#5

hmm, hope theres no nativescript way to achieve the same.