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
1
vote
1 answer

Does jQuery.when() queue these function calls?

According to jQuery docs: To execute a function after two ajax requests are successful: $.when($.ajax("/page1.php"), $.ajax("/page2.php")).done(function(a1, a2){ /* a1 and a2 are arguments resolved for the page1 and page2 ajax requests,…
Ifedi Okonkwo
  • 3,406
  • 4
  • 33
  • 45
1
vote
0 answers

Getting errors ydn-db on android browser

We're building an app and want to use the ydn-db to store local data. On PC browsers we don't have any issues, but on my Android phone (and iOS simulator) we get a lot of errors. Even the example/unittest page is giving a lot of errors. Like tests…
1
vote
1 answer

How can I index child object properties in an array using ydn-db-fulltext?

I'm using Ydn-Db-Fulltext to allow users to search a local database of contacts in an HTML5 app. So far, when it comes to searching for names of people, it works great, is smart, and returns results instantly. Here's an example of a contact object…
1
vote
2 answers

Can YDN-DB handle large entries at once?

Im having troubles trying to retrieve a large amount of data using Ydn-db. The problem is: -I have a large JSon file that I want to store in my app to use it offline -I query the file and then save the data successfully using db.put -Then, if I…
Crash Override
  • 411
  • 6
  • 17
1
vote
1 answer

How to remove a database in ydn db

my issue is I cannot remove a created database. This should do it: ydn.db.deleteDatabase('db name') But I get this error: "r.openDatabase is not a function" What did I do wrong? Thank :-)
OOPDeveloper89
  • 207
  • 5
  • 18
1
vote
1 answer

ydn-db: calling get() for the second time cause error

I read a value from database, then based on that value, I read a second one. Here is the code: mydb.db.get("store1", 1) .then(function(result1) { // Assume result1 is needed here. // This second get() will cause error. return…
rahmadid
  • 11
  • 2
1
vote
2 answers

YDN-DB - Incorrect results using mixed data types with SortedMerge

I'm using the excellent YDN-DB as part of a complicated 'dashboard' web page that allows a user to download a large amount of information and then search & filter the data how they wish. The data comes down in the form of 1 UNID and 6 columns of…
ty_rex
  • 89
  • 5
1
vote
0 answers

ydn db full text search

Using ydn db full text search i have this code which search all the data related to delhi with exact match and prefix match db_mob_audit.search('mainindex', 'Delhi').done(function (Srchresponse) { console.log(Srchresponse); }); But…
1
vote
1 answer

How to implement "And"-Condition in ydn db?

I need help in ydn db. My issue is as follows: How can I fetch records by 2 conditions? In sql it would be: "SELECT * FROM store WHERE name='Test' AND cool=1;" Currently my attempt looks like this: var keyRange = ydn.db.KeyRange.bound(['Test',…
1
vote
1 answer

Querying on multiple keys (range on one of them) with indexedb or ydn

I have read, re-read and read again this document and countless of other sites, but for the life of me I am unable to figure out how to do the following. I simply have the following (ydn notation) { name:'index', …
David Mulder
  • 26,123
  • 9
  • 51
  • 114
1
vote
1 answer

ydn-db join,filter and order by

I have events and an events_date objects and want to know how to do a join query like this: select * from events, events_dates where events.objectid=event_dates.eventID order by event_dates.startDate asc here is my schema. I have…
jessiPP
  • 436
  • 1
  • 6
  • 21
1
vote
1 answer

Safari shows indexed column undefined on indexeddb polyfill. How to retrieve data using indexes in safari

I m getting the index colums on safari as undefined Here is the snippet i ve written. I am using parshurams indexeddb and shim jquery plugin. .indexedDB("database_name", { "schema" : "1" : function(transaction){ //…
Swapnil Mhaske
  • 365
  • 7
  • 21
1
vote
2 answers

How to update schema?

Is there any way to update schema? I've created a db with schema now I want to add an index to it. How to add an extra index to existing store? Thanks, -Kesav
kesavkolla
  • 459
  • 5
  • 14
1
vote
2 answers

How to use encryption in ydn-db database library?

I am trying to implement setSecret to encrypt the values in indexeddb but get the error: "unable to call method setSecret of undefined" Code Below: $(window).load(function () { //Database Schema var db_schema = { stores: [ { …
1
vote
1 answer

ydn-db: how do I clear a collection?

I want to do something analogous to SQL's DELETE FROM table1. There is a remove function that takes something called a KeyRange but I'm not sure how to create a KeyRange that represents "all keys" or if that's even possible. I can do…
Andrew Magee
  • 6,506
  • 4
  • 35
  • 58