I have this method that works well:
getOrders(params): Observable
{
return Observable.fromPromise(this.WebDBService.tbOrder.orderBy('[username+annord+tipord+numord]').reverse().toArray());
}
it returns all the table data properly…
in my project I'm using indexedDb through the wrapper Dexie.js. The goal is to fetch the data directly from the indexedDb instead of calling api all the time.
Since I might change/delete some data, from time to time, I use a version number to keep…
Suppose I have this series of Files
20,21,22,23,24,...,35
I separated that series into some packs by the below snippet code:
for (var i = 0; i < _Thread_SerieLength; i++) {
if (data_Seriepack.instanceList[index] !== undefined) {
…
I have a function that adds an entry to my indexedDB database:
const dbParams = {
// Update this when changing the db schema
dbVersion: 1,
// Database, object store names
databaseName: "CropViewConfigData",
datesConfigStoreName:…
I'm adding a indexedDB in my Vue + Laravel application, here's the code that I'm currently using:
export default {
mixins: [VueGoogleMap.MapElementMixin],
created() {
this.eventBus.$on("refresh-map", () => {
…
I have to realize a web application that use LocalDB to manage offline order creation.
In this moment I'm implementing the LocalDB using Dexie for Angular2/Typescript.
What I have to do is realize a database in order to be able to manage:
Customers…
The Requirement is to return two simple arrays from the localdb.
The function is:
public getCaricamentoVeloceConf(): Observable {
let res = new RespOrdiniGetsceltecaricamentoveloce();
res.tipo =…
I defined one collection without any problem as follows:
db = new Dexie('db');
db.version(1).stores(
{test : '++id,title'}
);
but when i add a new table to 'db' database by two ways below, both is failed and change does not happen.
//without…
I'm trying to implement a function that check if a price is in a range.
The data are located in the IndexedDB and I'm using Dexie to work with it.
In this moment I can't compile my soluzion
public checkPrizeChange(codCli: string, codList: string,…
Following query throws error:
DB.classes
.where("name")
.anyOf(["John", "Rick"])
.or("nickname")
.anyOf(["Joe", "Bill"])
.and("isDummy")
.equals("1")
.toArray().then(()=>{})
How can I rewrite the query in correct…
In the following table, I need to replace values in name and class columns using the following objects
+----------------+
| id name class |
+----------------+
| 1 a x |
| 2 b y |
| 3 a z |
+----------------+
name
{
…
I am using Dexie.JS to work with IndexedDB.
Currently, have a stupid query written as:
return db.events.each((element) => {
let d = element.cause.data;
if (d.hasOwnProperty('deleted') && (false == d.deleted) &&
…
I have a bit of code:
db.files.update(id, {name: name}).then(function(updated) {
// Other stuff
}
When it runs, it replaces the entire record with
{
name: "File name"
}
According to the docs, this is what Table.put() should do, not…
I am building an ionic 3 app and I want to set up an upload based on the ImagePicker Cordova plugin.
I use Dexie to persist some data, and I wonder if persisting whole base64 strings would be alright. Or is it too heavy?
I want to persist the images…
I'm using the Dexie database. To add to the end of the table:
tabs.add({}, tabs.getIndex(tabs.getSelected()) + 1)
How to add an item to the top of the table?
I tried these options:
tabs.add({}, 0)
tabs.add({})
tabs.put({})