From bda0a981e77069c00a3fe83ff2b913368586e3c1 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Mon, 14 Sep 2015 14:38:37 -0500 Subject: [PATCH] SQL Thoughts --- ionic/storage/sql.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ionic/storage/sql.ts b/ionic/storage/sql.ts index 509640f26a..0fa9cc3cac 100644 --- a/ionic/storage/sql.ts +++ b/ionic/storage/sql.ts @@ -4,6 +4,13 @@ import * as util from 'ionic/util'; const DB_NAME = '__ionicstorage'; +/** + * SqlStorage uses SQLite or WebSQL (development only!) to store data in a + * persistent SQL store on the filesystem. + * + * This is the preferred storage engine, as data will be stored in appropriate + * app storage, unlike Local Storage which is treated differently by the OS. + */ export class SqlStorage extends StorageEngine { static BACKUP_LOCAL = 2 static BACKUP_LIBRARY = 1