How to Enter and Access Data from Sqlite and Ionic 2


#1

Hi! I’m new to developing mobile apps and I need some help using Ionic2 with Cordova SQLite Plugin. Thanks in advance! :slight_smile:

I would like to see a step-by-step working example from the beginning to the end on how to open and create database, insert and read data from Sqlite using Ionic version 2.0.0.

I need to use Ionic Native SQLite plugin and what I am looking for is something similar to the tutorial by Nic Raboy but updated to the Ionic 2.0.0. production release.

Here is my environment:
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
ios-deploy version: 1.9.0
ios-sim version: 5.0.13
OS: OS X El Capitan
Node Version: v6.9.4
Xcode version: Xcode 7.3.1 Build version 7D1014


#2

If all you need is key/value, look at ionic-storage.


#3

Thanks for the response but I need to use Ionic Native SQLite plugin.