Languages

Menu
Sites
Language
Database in Tizen webApp

Hello :)

I successed to create indexedDB.

And than I tried to make objStore but it wasn't working..

 I want to get objStore and manage data.

this is my code.

<pre class="code">
 

 

function createDB() {
     window.indexedDB = window.indexedDB
        || window.mozIndexedDB
        || window.webkitIndexedDB || window.msIndexedDB;
      if (!window.indexedDB) {
       window.alert("Does not support IndexedDB");
      } else {
       var tizenDB = {}
       var request = window.indexedDB.open("TizenIndexedDB");

       console.log(request); //The created indexedDB can be checked.

       request.onsuccess = function(e) {
        alert("success");
       }
       request.onerror = function(e) {
        console.log(e);
       }
       
       
       
      }
 

            tizenDB.db = event.target.result;
            var objStore = tizenDB.db.createObjectStore("tizenStore", {keyPath: "key"});
            console.log(objStore);
    
        
    }

 

 

</pre>

 

My log show "tizenDB.db " is undefined.

I don't know the problem.

 

Please let me know.

 

++++

Is there no the database used in tizen web app ??

Tizen has many storage like Web Starage, IndexedDB and WEB SQL.

But, 

Web Starage just has key,value. so, it is too simple using in big project,

In case of indexedDB, I heard it has some bug to transrating data between objstore.

and than Web SQL database is no longer in active maintenance and w3c does not intend to maintain it further.

 

.......

What kind of database that I use in tizen web app ???......

 

 

 

Thanks,

Jenny

Edited by: Jenny Blossoms on 20 Oct, 2013

Responses

2 Replies
konduri sai swathi

Hi,

I guess your issue is same as this post : https://developer.tizen.org/forums/web-application-development/indexeddb-transaction-scope-does-not-work-well

If so, then there is a bug already raised in JIRA : https://bugs.tizen.org/jira/browse/TDIST-418

Follow the link for more updates.

Jenny Blossoms

In my case, I cannot load the TizenDB

so, I can't create objstore.

When I use this database as MainDB, Is it Problem?

Did it solved in JIRA?

I cannot check this problem in JIRA cuz I cannot access this site (I don't know the why)

 

Please let me know :)