Questions tagged [ydn-db]

Client-side javascript database library. Works which IndexedDB, WebDatabase (WebSQL) and WebStorage (localStorage).

Javascript database module for Indexeddb, WebDatabase (WebSQL) and WebStorage (localStorage) storage mechanisms supporting version migration, advanced query and transaction.

References:

97 questions
0
votes
1 answer

Functionality in ydn.db is missing

I'm using ydn.db-is-core-qry.js, downloaded last week. A lot of the functionality listed in the documentation is missing under the object ydn.db. I cannot for instance find ydn.db. KeyIterator or ydn.db. ValueIterator. I've attached a screenshot…
0
votes
1 answer

how to sync data from ydn-db web app to backend server?

With ydn-dn, i want to automatically synchronise data from my web app with my REST back end. I read the documentation and searched in examples but i cannot make it…
asicfr
  • 1,061
  • 1
  • 13
  • 30
0
votes
1 answer

values function in ydn-db not working in safari and iOS9

The get,values,count function of ydn db is not working in safari and ios9. I have tried to reopen the db and then access it but still no luck. db_mob_audit = new ydn.db.Storage('idb_mob_auditor', schema); …
0
votes
1 answer

Uncaught ydn.error.ArgumentException: require index "Account__c,PrimaryContact__c" not found in store "contactRole" store.js line 1284

I have the following: ydbStorage = new ydn.db.Storage(dbName, schema); /** @param values - An array of keys . e.g. ['account1', 'city1'] @param index - An string of index value . e.g. 'account, city' @description - Get records based on compound…
Prabhat
  • 4,066
  • 4
  • 34
  • 41
0
votes
2 answers

How to remove store from ydn.db?

I am using ydn.db from local storage. Which function can be used to remove the store using YDB.DB library ? The stores i have added is as follows var schema = { stores: [{ name:'consignments', keyPath:"timeStamp" }]; var db = new…
Tej Patil
  • 115
  • 11
0
votes
1 answer

YDN-DB executeSql didn't work properly on browser

I have a stack that using executeSql in ydn-db. When I use executeSql in ydn-db, I didn't get properly. Here my snippet. My cacheDB schema is; var p = new promise.Promise(); cacheDb = new…
502_Geek
  • 2,046
  • 2
  • 22
  • 32
0
votes
1 answer

Searching with multiple values in YDN-DB

Is it possible to find multiple value (like sql IN keyword) in YDN-DB? //simple scenario "SELECT * FROM categories WHERE code IN ('AB','CD','EF','GH','IJ','KL');" var code = "'AB','CD','EF','GH','IJ','KL'"; var key_range =…
502_Geek
  • 2,046
  • 2
  • 22
  • 32
0
votes
1 answer

Is it possible to know the progress of a put operation of ydn-db?

Since the initial filling of tables into indexedDb via ydn-db's db.put takes quite long depending on data amount i want to present the user with a progress bar. Is it possible to know the progess of a db.put operation?
Risingson
  • 188
  • 13
0
votes
1 answer

ydn-db issue with ie9: SCRIPT5007: Unable to get value of the property 'XMLDocument': object is null or undefined

I'm using ydn-db to build a test app that can work offline in mutliple borwsers and devices. My first option was to use indexedDB but then I realised that not all browsers and devices support it. So, after some research I decided to move to…
0
votes
1 answer

How do I get the proper js file?

At some point, I somehow downloaded the file ydn.db-isw-sql-e-cur-qry-dev.js. I don't recall exactly what options I chose on the download site to get this file, but it works perfectly. I now want to get a non-dev version as well as the .map. I…
RAD
  • 13
  • 2
0
votes
1 answer

What is the best way to search by multiple fields in ydn-db?

I am having a problem with multiple field search in ydn-db. The problem is actually the same problem which mentioned here: YDN-DB - Incorrect results using mixed data types with SortedMerge So the user can choose multiple filter options from the…
0
votes
1 answer

Best way to loop through indexDb using ydn-db

I'm using ydn-db as a shim for mobile dev but am experiencing some poor performance with IOS and record retrieval. My question is, what is the best way to loop over a data store? Right now I use db.values() and set the limit to the number of items…
proxim0
  • 1,418
  • 2
  • 11
  • 14
0
votes
2 answers

How to get the next element after keypath using YDN-DB

I am trying to build a function that retrieves the next element in a store after the passing keypath. My getItem looks something like that. req = smartpigsdb.get(store, keypath); req.done(function(record) { if(record!==undefined || typeof…
bboydflo
  • 907
  • 1
  • 15
  • 24
0
votes
1 answer

Using ydn-db inside a Firefox Jetpack add-on

Has anyone had success running ydn-db inside of a FF Jetpack add-on? I've got it partially working but am now stuck. I'm using ydn.db-isw-sql-e-cur-qry-dev.js v1.03. I had to modify it to require Jetpack's indexeddb library, once I did that ydn's…
akb
  • 61
  • 4
0
votes
2 answers

How to save data to websql in a single transaction using YDN-DB

I have an app where I can manually choose to go offline. When a user does that I fire an ajax requests to get data and save it in websql db. My retrieved data consists of a collection of models, which I want to write separately in a single…
bboydflo
  • 907
  • 1
  • 15
  • 24