[solved]Database in ionic

Thanks Akhil. Exactly what I was looking for.
Maybe you could provide the source code to me?

BR Metz

Managed to implement the DB.
I’ve used the getting started guide from Ionic - Many thanks to the team. This is great. - and extended the myApp with a local SQL database.

tanks akhil you hare the best

Bloody hell!! Such horrible video editing. We have to literally watch your every keystroke. Please edit your video and upload again. You can make it a 20 mins video.

@siddhartha - Please learn some manners to speak in such type of forums. If you don’t like my video, just ignore it. At least, I shared my knowledge with all, what you did so far?

I request moderators of this forum to watch for @siddhartha reply and take appropriate action, if his reply to my post is objectionable.

5 Likes

Please be courteous in these public forums. One thing you have to understand is that ionic currently is a free open source framework and no one is here to cater to your needs, people can only try to help you.

I think what you are looking for is not a tutorial video but ready-to-bake code. Here you go.

@akhil and @peey

I think its cool that you spent time on that (:

Guess what I timed it. It took exactly 1min and 22 seconds :smile:

@akhil and @peey Is the sqlite plugin good to use

If u r going to develop a serious ionic app, definitely use pouchdb
http://pouchdb.com/getting-started.html
as pouchdb has a 2-way data synchronisation with couchdb. It’s really an amazing persistent database for ionic app.

1 Like

I have been using pouchdb for a while and it works like a charm. So I definitely recommend it. You can also enable it to use sqlite if is necessary, documentation explains it in detail.

Here is my another video tutorial where I have used indexedDB, because indexedDB is supported by all platform.

nicely explained akhil each and every part of the app and how to interact with HTML5 localstorage, thumbs up , I was looking for this and now I got the clear view of my application logic and functionality after watching this, thanks a ton.

indexedDB isn’t supported by all platforms => https://cordova.apache.org/docs/en/4.0.0/cordova_storage_storage.md.html

My latest tutorial on ionic and lovefield

Any example using the SQLite provider?

For such projects I’m using http://www.js-data.io/ with local-forage adapter. It could be bit overkill but it has one big advantage. Once you (your client) change your mind you just change the adapter (to Mongo, FireBase, MySql, name it) and all your code still works as expected.

Very good example but you made it too long, you should try to make shorter and easier examples, anyways very good job! congrats, it helped me a lot.

My latest video tutorial using ionic2