Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229580

SQLite How to Change Database Location

$
0
0

import {SQLite} from "@ionic-native/SQLite"

this.storage.create({name: "data.db", location: "default"})

How can I give it an arbitrary location through a file path
ex. cordova.file.applicationDirectory + "www"

Alternatively, how can i use the File API to copy the db file created in location:"default" to another location


Viewing all articles
Browse latest Browse all 229580

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>