105 questions
3
votes
0
answers
111
views
WatermelonDB Error: EBUSY: resource busy or locked when switching from LokiJSAdapter to SQLiteAdapter with Node.js
I creted a basic Node.js app with WatermelonDB and LokiJSAdapter and is working fine but when I switched to SQLiteAdapter this error start appering. Any ideas hoe to fix that?
Error: EBUSY: resource ...
3
votes
0
answers
1k
views
Loki js: 8 requests failed to load;
I have a frontend application using React. In the project I use Storybook. And for regression screenshot testing of ui-elements, I use the "loki" library (loki.js.org). "Loki" ...
1
vote
0
answers
312
views
screenshot testing falles in input test(loki)
Screenshot tests always falling in tests with my custom Input component. Screenshots with difference shows me difference in border-radius even after adding these tests. Sometimes it falls in different ...
1
vote
0
answers
454
views
How to configure visual regression testing using Loki for Angular and Web components in Storybook
We have a design system with the core components built on Stencil and cross-compiled across React and Angular frameworks. Ideally we have all the components in React, Angular and Web-components. We ...
0
votes
1
answer
52
views
$gte / $lte filters not working in lokijs
I am generating query based on user input and passing it onto LokiJS to handle. However, query doesn't seem to take effect (everything is returned as it is).
Logic to generate query :-
function ...
2
votes
0
answers
322
views
LokiJS - fastest way to update large number of records?
I have a large in-memory dataset on the client side, and need to quickly update records in a wide dataset (at most, about 50k records at a time). Right now, I have a loop that looks like this.
// ...
0
votes
0
answers
405
views
NodeJS - best practices to handle in-memory data?
I'm building an app that heavily relies on in-memory data. It listens to 3rd party app via WebSockets and keeps up the in-memory state.
I have been thinking libraries like redux would be a great ...
1
vote
1
answer
365
views
Accessing local storage, Migrating Cordova App to Swift App
We’re at the tail end of re-writing a legacy Cordova app completely in a new Swift app, the issue we’re facing is when it comes to migration, the Cordova app stores some information on device like ...
0
votes
0
answers
1k
views
Drop TimeStamp in Grafana Loki and Get the List of Logs
Recently, i have started working on Grafana Loki. I got some understanding of the logging stack(PLG - Promtail, Loki and Grafana). I need to store the logs in Loki. So, i have set the promtail agents ...
1
vote
1
answer
317
views
LokiJS saveDatabase to persistence issue
I've been working with lokijs on node and use it with express and socket and typescript.
Now i've got two instances of loki database and when I use db.saveDatabase() it is not set in the file although ...
1
vote
1
answer
878
views
TypeError: Loki is not a constructor
I don't seem to be able to figure out why this is not working
My Hapi.js index.ts looks like this:
import { Server, Request, ResponseToolkit } from '@hapi/hapi';
import * as Loki from 'lokijs';
...
...
3
votes
2
answers
899
views
How to write a case-insensitive query for nuxt-content
I'm writing my blog with Nuxt Content which can filter posts based on their properties. One of my properties is tags. Now I would like to create a page for each tag.
My current solution works, but the ...
0
votes
1
answer
80
views
Loki db changes new project integration
My project new integration :
I am using find() method but it is not working.
var arrayResults = collection.find({'userId':$rootScope.userId,'productType':'kcc'});
Like this working fine.
var ...
0
votes
1
answer
121
views
LokiJS: when using DynamicView().branchResultSet with applySort it doesn't sort the collection
I am having a problem getting data from a branchResultSet after using the applySort on the view. The reason I am using that is because I want a limit of 10 records back and not the whole thing for ...
1
vote
1
answer
626
views
Node-LokiJS: not all get requests are fulfilled, request status is forever pending?
I followed this tutorial on file upload with multer-express and then retrieving image by id Scoth.io.
The setup uses LokiJS as database.
All the API's works fine however when API to retrieve multiple ...