Dexie to query JavaScript arrays - dexie

I am working on an application in angular that is making great use of IndexedDb via dexie. I am in love with dexie due to its support to query indexed db stores in a sql like way. My question is can we use WhereClause of dexie with simple javascript arrays along with indexeddb stores? What i meant is
[{Id:1,test:"ABC"},{Id:2,test:"XYZ"}].where("test").equals('ABC').toArray()

Related

PowerBI / Power Query Dynamic data in query

Using PowerBI/PowerQuery I'm using the web connector to query a rest api which returns json. I'm converting that to a table and ending up with a single column of values (id's). Looks like this:
These ids now need to be used in subsequent web queries, one query for each id. This will then yield the 'real' data which I need to get to.
How can I iterate through those id's using each in a new web query?
I have a complete solution in Python and can just import the json files from the Python script into PBI, but I really want to be able to give the PBI report to a colleague who would not touch Python, so I'm keen to find a simple way to achieve this in PBI/PQ.
Would appreciate any pointers on how this could be achieved as simply as possible.

Query to read data from URL

I am using Greenplum Database.
Need to write query or may be function to read data from a URL.
Say a sharepoint URL is there, which contains some tabular data.
I need to write a query to fetch that Data from within the sql query or function.
I can get http_get, but its not helpful because the version is 8.2x.
I also tried python as pg language, it is also not working as it is listed as untrusted language. Hence looking for some alternative.
Have you tried using web external tables:
https://gpdb.docs.pivotal.io/5170/admin_guide/external/g-creating-and-using-web-external-tables.html

How to implement Server-Side Datatables using CodeIgniter and Eloquent ORM

I have implemented Eloquent ORM using CodeIgniter and been able to fetch records from the database.
Need some help with implementing Server-side datatables using the above.
http://datatables.net/examples/data_sources/server_side.html
Tried using this:
$data = User::all()->toJson();
Gets data in JSON but doesnt work as it needs more data for datatable like the number of records and number of times table is drawn etc.
I am really stuck out and this small fix would help me a lot.
After various efforts instead of fetching data using ORM used Ignited Datatables library and pushed data to datatables. For now helped me. But would surely find some alternative by using the illuminate database.

How to write a complex query to interrogate multiple lists using client object model

I currently have a SQL query that needs to be rewritten in C# code that interrogates 2 different sharepoint lists.
Given that this query filters using the SQL year() function, has multiple unions and subqueries, how should I be writing this in code? CAML queries or LINQ seem excessive and slow when the query will be converted back into SQL to be run anyway (the lists in question are actually tables surfaced as lists through Access Services, so it seems stupid to convert a database query into code, in order to run a database query!)
I ended up doing this by importing all the data from the relevant table's lists into an in-memory SQLite database, using the client object model, and then running a modified SQL query on the SQLite tables. As there wasn't that much data this was an acceptable method.

How to query the session in ASP.NET MVC with a dynamic query

I want to store some user data in memory, like some in-memory noSQL database.
But later on I want to query that data with a dynamic query constructed from the user. That query is stored in a classic DB like a string, so when I need to query the data stored in memory I would like to parse that string and construct the desired query (by some known rules).
I looked at Redis and I figured out it isn't maintained for Windows anymore, I have also looked at RavenDB but it's main query language is LINQ, even though it can be created dynamic Lucene Query.
Can you suggest me another in memory DB that work with ASP.NET and can be queried with a dynamically created query? Maybe I haven't seen all the options.
I prefer name-value or JSON based noSQL so it's schema can be easyly modified without the constraints of the relation type of DBs
I would suggest to simply use sqlite. It can be easily used as an in-memory database (just open the database using ":memory:" instead of a file name).
You can use a simple 2 columns table with a primary key to emulate a key/value store.
Here are a few links you might find helpful:
http://www.sqlite.org/inmemorydb.html
How to create asp.net web application using sqlite

Resources