@ejamartins wrote:
Hello, guys.
I’m creating an ionic app using version 4 and now I’m looking to find a way to load a SQL file to initialize the application.
I didn’t find a way to load a file using only the SQLite and now my idea is to use File API and process each line.
My question is to check if you have a better idea and sample about how to read the file and load into db.My ionic setup is:
ionic infoIonic:
ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.1.2
@angular-devkit/build-angular : 0.13.6
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.3.6
@ionic/angular-toolkit : 1.4.1Cordova:
cordova (Cordova CLI) : 9.0.0
Cordova Platforms : android 8.0.0, browser 6.0.0, ios 5.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 6 other plugins)System:
ios-deploy : 1.9.4
ios-sim : 8.0.0
NodeJS : v8.12.0 (/usr/local/bin/node)
npm : 6.9.0
OS : macOS Mojave
Xcode : Xcode 10.2 Build version 10E125Thanks
Edson
Posts: 1
Participants: 1