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

Help me help me . i need a function get save json into sqllite database

$
0
0

Hi, @nguyentrunghieutcu

You have to create a dummyDump.sql file in ‘assets/’ folder like this,

CREATE TABLE IF NOT EXISTS developer(id INTEGER PRIMARY KEY AUTOINCREMENT,name TEXT,skill TEXT,yearsOfExperience INTEGER);
INSERT INTO developer(name, skill, yearsOfExperience) VALUES ('Simon', 'Ionic', '4');
INSERT INTO developer(name, skill, yearsOfExperience) VALUES ('Jorge', 'Firebase', '2');
INSERT INTO developer(name, skill, yearsOfExperience) VALUES ('Max', 'Startup', '5');

Thanks.


Viewing all articles
Browse latest Browse all 229268

Trending Articles



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