[solved]Database in ionic


#1

I need 1 db local in my app, but have 1 question, the best bd for this i tink pouchdb but need your help.
pouchdb is the best??

Tanks for help


#2

It depends on what you mean by “database”. Perhaps you just need local storage? If so, then you can handle that yourself or use many existing angular implementations such as :


#3

Tanks Callender

already managed to do what I wanted thanks to your help.
SO I would like to know one more thing, is it possible to check for ionic binding to the internet from the device? I was trying to use the plugin cordova not yet got it working :confused: also saw your post here How to use Cordova plugins with Ionic Framework, the Angular way
but what the variable var checkConnection gets the value = function up ()} ;

once again, thanks for the help


#4

Please check out my below tutorial, where I have used HTML5 locastorage with ionic framework.


Db in ionic
localStorage Freelance Job
How to use a Database? Totally lost
#5

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

BR Metz


#6

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.


#7

tanks akhil you hare the best


#8

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.


#9

@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.


#10

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.


#11

@akhil and @peey


#12

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


#13

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


#14

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


#15

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.


#16

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.


#17

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


Db in ionic
#18

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.


#19

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


#20

My latest tutorial on ionic and lovefield