Skip to content
This repository has been archived by the owner on Aug 22, 2020. It is now read-only.

Ionic Native SQLite Driver Implementation #1

Open
keyurpatel1980 opened this issue Oct 27, 2016 · 6 comments
Open

Ionic Native SQLite Driver Implementation #1

keyurpatel1980 opened this issue Oct 27, 2016 · 6 comments
Assignees

Comments

@keyurpatel1980
Copy link

I could not use sqlite driver when installed on my machine using npm. Actually, under drivers folder only websql folder is present.
Can you please help me use sqlite driver for my ionic 2 project?

Keyur

@BradyNadeau
Copy link
Owner

Currently this does not yet have SQLite supported... This is currently in active development and should be pushed out in a few days.

Thanks.

@mfdeveloper
Copy link

Great job @BradyLiles! Maybe a simple solution is integrate with ionic-storage and Ionic Native SQLite. What do you think?

@BradyNadeau
Copy link
Owner

BradyNadeau commented Nov 1, 2016

That's exactly what is planned @mfdeveloper. Integrating with Ionic Native SQLite will be done soon.. Ionic-Storage seems to be more of a key-value pair storage.. not much of a database and I don't foresee how it could really work in this type solution..

Right now WebSQL is currently supported and should work just fine in a the browser.
Getting SQLite supported is not too much work. There are many similarities between WebSQL and SQLite but some very key differences as well. WebSQL does not support PRAGMA, BEGIN TRANSACTION, ROLLBACK, ENDTRANSACTION, etc which should be supported in the SQLite instance..

I'm having the issue right now as well where I need to start getting this up on the mobile device for a project of mine so this will be done here very shortly.

@BradyNadeau BradyNadeau changed the title cannot find sqlite driver when installed Ionic Native SQLite Driver Implementation Nov 1, 2016
@mfdeveloper
Copy link

mfdeveloper commented Nov 2, 2016

Awesone @BradyLiles! I'm doing a offline POC version of my app, that use one of these options to local storage (WebSQL, SQLite...) and sync with a remote server REST API when the app is online again!

I will check this repo and the future implementations that you mentioned. Thank you so much for your attention 😄

@digaus
Copy link

digaus commented Mar 8, 2017

Any news on Ionic Native SQLite support?! WebSQL is working fine but only on Android and Browser... need support for Windows 10 and iOS aswell :/

@mobidev111
Copy link

@BradyLiles could you post your changes in this repo as pull-request to typeorm - pleerock is looking forward to these changes getting merged (typeorm#62 (comment)) and the community can extend your excellent work - e.g. I too want to add SQLite support to ionic

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants